 # C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Apply the Prim's Algorithm to Find the Minimum Spanning Tree of a Graph

Program Add Two Numbers Using Pointer - In program we're going to accept 2 numbers from user using pointer. After accepting Two Numbers we are going to add Two Numbers by using "De-reference Operator" in Pointer.

Implimentation of a list using a Linked List - Operators declared on the type list. Reading a list from input. Writing a list on the output. Gets a list and returns its length. Getting an element and returns its positon in the list. If

Generate All Subsets of a Given Set in the - Print all combination of a given length from the given array. Return if the currLen is more than the "required length". If currLen is equal to required length then "Print the sequence".

Remove Last Occurrence of Word in String - Remove the 'last occurrence' of any word in a string using Loop in C Language. Input string from user, store it in some variable say string. Input word to be 'searched' from user, store it

C Language Code Convert Binary to Octal - Program takes a binary number as input and converts to octal. Take a binary number as input. Divide the binary number into groups of 3 bits. For each group of 3 bits, multiply...

Check whether Graph is a Bipartite using a - A utility function to check if the current color assignment is safe for "vertex v". A Recursive Utility Function to solve m coloring problem. This function solves the m Coloring problem

Find Angles of triangle if two angles given - C Program to input two angles from user and find third angle of the triangle. How to find all angles of a triangle if two angles are given by user using C programming. Sum of angles of

C Convert Octal to Hexadecimal Number - C program to input octal number from user and convert to hexadecimal number system. Octal Number System is a base 8 number system. It uses 8 symbols to represent all its