# C++ Programming Code Examples

## C++ > Data Structures Code Examples

### C++ Program to Implement Skew Heap

Checking the Number is Armstrong or Not -
To check whether a number is an 'Armstrong' number or not an Armstrong number in 'C++' Language, 'enter the number', now check for the Armstrong number, whether the entered

Find Reverse of a Number using Recursion -
Declare recursive function to find reverse of a number. Lets give a meaningful name to our function, say reverse(). C function computes reverse of number, hence it must accept an...

Compare two Strings in the C++ language -
Function will return 0, if the strings are equal; return 'negative value', if "string1 is less" than string2 and return "positive value" if string1 is greater than string2. This function 'compares'

Perform Edge coloring on Complete graph -
This algorithm takes the input of the number of vertexes. Construct a complete graph for v vertex. So it assigns a color to edges without assigning the same color to 2 adjacent edges.

Program code to Reverse a Given Number -
Take the Number which you have to Reverse as the input. Obtain its quotient & remainder. Multiply the separate variable with 10 & add the obtained remainder to it. Do step 2 again

C++ Implements Fermat's Little Theorem -
Program demonstrates the implementation of Fermat's Little Theorem. For the modular "multiplicative inverse" to exist, the number and 'Modular' must be 'Coprime'. Calculates

C Power of a Number using Pow Function -
C Programming Code to input two numbers from user and find their power using pow() function. How to find power of a number in c. How to use pow() function in C programming.

Reads Strings from a File in Reverse Order -
Program code to find out how many strings there are. Read string length. Check buffer is large enough and increase if necessary. Now get the position for the beginning of each...