# C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### C++ Program to Perform the Shaker Sort

C program to Calculate 1+2+3+4+5+...+N -
In The C, you can print any number series and I will show you how to 'print number series' in C Language with explanation. In case of print number series you need to focus on common

Printing Multiplication Table of a Number -
C program to input a number from user and print multiplication table of the given number using for loop. Input a number from user to generate multiplication table. Store it in a var

Program Code find First Digit of a number -
Finding the first digit of any number is little expensive than last digit. To find first digit of a number we divide the given number by 10 until number is greater than 10. At the end...

C++ Codings Global Function Friend Class -
Similar to friend class, this 'C++ Function' can access the private and protected members of another class. A 'Global Function' can also be 'declared as friend' as shown in the C++ Code

C++ Same Namespaces in Multiple Places -
In C++, namespace can be defined in different parts of the program. All the objects that are in different parts of a program, but if in same namespace will form one namespace. Better

Binary Search Tree non-recursive traversal -
In this, includes the inserting a node, deleting a node, recursive tree traversal, non-recursive Tree Traversal, finding the minimum and the maximum, leftchild, rightchild, copy a tree to

Program to Solve a Matching Problem For -
Program to solve a matching problem. Given N men and N women, where each person has ranked all members of the opposite gender in order of preference, marry the men & women

C Find Maximum Between Three Numbers -
C program to input three numbers from user and find maximum between three numbers using conditional/ternary operator ?:. How to find maximum between three numbers using