 C++ Programming Code Examples

C++ > Data Structures Code Examples

C++ Program to Evaluate an Expression using Stacks

C++ Uses Naor Reingold Pseudo Function - A C++ Program to genrate random numbers using Naor-Reingold random function. Moni Naor and Omer Reingold described efficient constructions for cryptographic primitives in

Remove All Occurrences of Character from - Program to remove all occurrences of a given character from the string using Loop. Enter a character to Remove from string. Function to "Remove all occurrences" of a character from

The C++ Language While Loop Statement - The statements within the while loop would keep on getting executed till the "condition" being tested remains "true". When condition becomes false, the control passes to the first

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

Find The Perfect Number In C++ language - For example 6 is Perfect Number since divisor of 6 are 1, 2 and 3. Sum of its divisor is 1 + 2+ 3 =6 and 28 is also a 'Perfect Number' since 1+ 2 + 4 + 7 + 14= 28. Other 'Perfect Numbers': 496

Built-in Function in the C++ Programming - "Built-in Functions" are also known as library functions. We need not to declare and define these functions as they are already written in the C++ libraries such as iostream, cmath etc.

C Find LCM of 2 Numbers using Recursion - C Program to find LCM of two numbers using recursion. Initialize multiple variable with the maximum value among two given numbers. Check whether multiple clearly divides both

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