C++ Programming Code Examples
C++ > Computer Graphics Code Examples
You can c different cursor shapes in this program like butterfly,
C++ Check a Number is Palindrome or not -
Palindrome number is a number that remains the same when its digits are reversed. 16461, for example: we take 121 and reverse it, after revers it is same as original. Get a value from
Partition of a Number in all Possible Ways -
C++ Program to get all the unique partitions of an integer such that addition of a partition results an integer. An integer n, generate all "possible unique" ways to represent n as sum
C Code to find largest element of an Array -
Function to find the largest element in the array. In the following program we are initializing a variable (maxelement) with the first element of given array and then we are
C Program code find LCM of two numbers -
C program code input two numbers and find LCM (Lowest Common Multiple) using loop. Input two numbers from user. Store them in some variable say j1 and j2. Find maximum...
C Programming Sample If Else Statement -
If condition returns true then the statements inside the body of "if" are executed and the statements inside body of "else" are skipped. If condition returns false then the statements
C Segregate 0s on left side 1s on right side -
C Program to Segregate 0s on left side and 1s on right side of the Array (Traverse Array only once). Function to segregate all 0s on left and all 1s on right. Increment left index while we
Undirected Graph contains a Eulerian Path -
Check if this graph is Eulerian or not. Check if all non-zero degree vertices are connected. If graph has no "odd degree vertex", there is at least one Eulerian Circuit. And if graph as two
Code Finds Maximum Between 2 Numbers -
Finding maximum in general is comparison of two numbers. In C programming we compare two quantities using relational operator. Use either > or < operator to compare 2 numbers