# C++ Programming Code Examples

## C++ > Data Structures Code Examples

### C++ Program to Implement Disjoint Set Data Structure

Program to Accept Paragraph using scanf -
Here scanf will accept characters entered with spaces. It also accepts the Words, new line characters. Represent that all characters are accepted except tab(t), whenever t will

Reference Operator Dereference Operator -
The pointer is a C++ programming data type whose value refers directly to (or "points to") another value stored elsewhere in computer memory using its address. Pointer examples

Find the Length of Strings without strlen() -
We are Counting the Number of characters in a given String to find out & display its Length on console. Upon 'execution' of this program, the user would be asked to enter string, then

C++ Program Code Implement Radix Sort -
In this algorithm Sorting of Data is done from least significant digit to most significant digit. Here we need 10 different spaces labeled 0 to 9. Assume we have "n" Number of inputs. Let

C++ language Decode a Message Encoded -
This program decodes any message encoded by the technique of traditional playfair cipher. "The Playfair Cipher" is a 'Manual Symmetric' Encryption Technique and was the first literal

Sample Implements Sieve of Eratosthenes -
C++ program sample to implement Sieve of Eratosthenes. Program initializes an integer array with all the "elements initialized" to 0. Then The Algorithm follows where the each

Code Prints Fibonacci Series upto n Terms -
C Programming print Fibonacci series up to n terms using loop. Fibonacci series is a series of numbers where the current number is the sum of previous two terms. For Example: 0, 1,

C++ Find Minimum Element Linear Search -
First 'Compare the Element' at the beginning with another array element sequentially. And swap values if the element at the beginning is Larger than the other element. This value will