# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Program to Perform Edge Coloring of a Graph

Read an Array and Search for an Element -
C code accept an array of N elements and a key to search. If the search is successful, it displays "Successful Search". Otherwise, a message "UNSUCCESSFUL SEARCH" is...

C++ Coding Repeatedly Search Same Text -
C++ program performs Naive string matching without using any specific library functions. A text and a pattern is given as input. Pattern is 'searched' for in the text and all "instances" of

Implementing Disjoint Set Data Structure -
This C++ program implements the "Disjoint" Set data structure. It is a data structure that keeps track of a set of elements partitioned into a number of disjoint ("nonoverlapping")

Find the Subarray having a Maximum Sum -
Function to find the maximum sum sub-array which includes mid of the sub-array. Take the input of the "Integer Array". Using Divide and Conquer approach break the Array. Compute

Sum the Integers from 1 to users number -
Sum the integers from 1 to a user-specified number in C programming language. Declare the number of integers to be summed. The loop counter. Sum integers from 1 to count.

C Coding Print all the Paths from the Root -
C language program Function to store all the paths from the root node to all leaf nodes in a array. Function which helps the print_path to recursively print all the nodes. Function to...

Convert Octal number to Decimal number -
To convert octal number to decimal number in C++ programming, you have to ask to the user to enter the octal number to convert it into decimal number to print the equivalent

C++ Language & Concatenate Two Strings -
Combined two strings means add both string with each other, perform this operation using 'library function' or without library function. If first string is 'john' and second string is porter