# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### C++ Program to Find the Edge Connectivity of a Graph

Find Sum of Opposite Diagonal Elements -
C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user

Topological Sortings of a Directed Acyclic -
Topological sorting for directed acyclic graph (dag) is a linear ordering of vertices such that for every directed edge 'uv', vertex 'u' comes before v in the ordering. 'Topological Sorting'

Triangle given the lengths of its sides in C -
C Programming code gives all details of a Triangle given the lengths of its sides. Enter the lengths of the three sides of the triangle. S is the semiperimeter of the triangle. D is...

C Code to Illustrate the Concept of Unions -
C Define the union named number with two variables j1 and j2. Define the union variable x. Take the value of two variables using dot operator(i.e. x.j1, x.j2) as input. Print values

C Programming Infix to Prefix Conversion -
Structure declaration, condition for do-while loop, to input string, enter the infix string, to covert infix to prefix, checking for operand, to convert infix to postfix, to check for operand

Park-Miller Random Numbers Generation -
C++ Program to generate 'random' numbers using Park-Miller algorithm. general formula of a random number generator (RNG) of this type is: 'X_{k+1} = g X(k) mod n'. To generate

C++ Solving The Dominating Set Problem -
Problem takes 'E edges' as input and outputs dominant set of the graph, implementing the following heuristic. Dominant set of a graph's to find, a set of vertices S, such that for every

C Program to Check Strings is Palindrome -
Program example identify whether the string is palindrome or not using stack. Take a string as input. Store the string in the stack array. Check whether the string is palindrome or...