# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### C++ Program to Check whether Undirected Graph is Connected using DFS

C++ Sample Calculate Power by Recursion -
This technique can only calculate power if the exponent is a 'positive integer'. To find power of a number, you can use pow() function. C++ program calculates the power of any number

Check Prime, Armstrong, Perfect Number -
C First give a meaningful name to our prime checking function say isPrime() function will check a number for prime. Since our function checks a number for prime condition. Hence

Jacobi Itterative and Gauss seidal Method -
This is a program from numerical to calculate the 'root' of the given system, it will check its conditions and perform the operation on that system, esle it will tell you that system is not

C++ Language Find Largest of 2 Numbers -
To find the largest number of the 2 numbers in C++, enter 2 numbers and checking which one is larger to "Display the Largest" on the output screen as shown here in the program

Find GCD of the Numbers Using Recursion -
C Language program, use recursion, finds the GCD of the two numbers entered by the User. The user enters 2 numbers by using a space in between them or by pressing enter after each

C Program moves the file position pointer -
Zero on success or nonzero on failure. Seek from start of file. Seek from current location, seek from end of file, find proper structure, read the data into memory in c programming

C Using Continue in While Loop statement -
When using while or do-while loop you need to place an increment, decrement statement just above the continue so that counter value is changed for the next iteration. if we do not

C++ Language Codes Print Pascal Triangle -
To print "Pascal Triangle" in C++, you have to enter the Number of Line. So to Print "Pascal Triangle", you have to use three For Loops as shown here in the C++ Programming samples