# C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### Simple Merge Sort Program in C++

The C++ Implementation for Leftist Heap -
Internal method to merge Two Roots. Deals with Deviant Cases & calls recursive merge1. Internal method to "merge two roots". And Assumes 'trees are not empty', and h1's root

C Program convert Decimail nos to Roman -
Convert decimail nos to roman equivalent upto 10,000. Function for generating roman equivalent of 1000's. Function for generating roman eq of 100's. Function for generating...

Prefix Increment ++ Operator overloading -
The only difference is that, the return type of operator function is Check in this case which allows to use both codes ++obj; obj1 = ++obj;. It is because, temp returned from "operator"

Implementations for Pairing Heap in C++ -
"Change the Value" of the item stored in the pairing heap. Does nothing if newVal is larger than currently stored value. p points to node returned by insert. "newVal" is the new value

C++ Wheel Sieve Generate Prime Number -
This is a C++ Program to find 'Prime number' between the given range using 'Wheel Seive' method. "Wheel Factorization" is a graphical method for manually performing preliminary

Check the Number is Prime or Not in C++ -
To check the number is a "prime number" or not a prime number in C++, enter a number and 'start checking' for prime number. If the number is divisible by 2 to one less than that

C Program Check If a String is Palindrome -
Check if string is a 'Palindrome' without using the "Built-In function". "Take a string" as input & store it in the array 'string[]'. Then store the same string into the another array 'reverse_s'

C Code Initialize random number generate -
C program code example Initialize random number generator: how to use rand/srand. Generating random numbers. Print a number between 0 and 50, print a number between