# C++ Programming Code Examples

## C++ > Data Structures and Algorithm Analysis in C++ Code Examples

### Implementation for top-down splay tree

C Program Code to Catch pressing Ctrl+C -
Program example catches the Ctrl-C (SIGINT) signal for the first time and prints a output rather but exits on pressing ctrl-c again. You have presses Ctrl-C, please press again to exit

C++ Code Sample Preprocessor Directives -
There are different "Preprocessor Directives" that perform different tasks. Lets categorize preprocessor directives. Inclusion directives: "#include": specifies the files to be included,

Find Sum of Opposite Diagonal Elements -
C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user

Calculating Addition of 2 Numbers in C++ -
Program has 'three functions' which receives 2 pointers reference. Three functions returns int, float and double sum of numbers. So this c++ tutorial use the following concepts. Write

C Convert Binary to Hexadecimal Number -
C Program to input binary number from user and convert to hexadecimal number system. Binary Number System is a base 2 number system. Binary number system use only two

C++ Program Implement Stack by Linked -
C++ program, "using iteration", implements the list of elements removed from the stack in last in first out mode using a linked list. A linked list is an ordered set of data elements,

An Expression Tree for an Infix Expression -
C++ Program to construct an Expression tree for an "Infix Expression". A binary expression tree is a specific application of a "binary tree" to evaluate certain expressions. These trees

Performs Binary Search on a Sorted Array -
Returns a pointer to the first member that matches *key. A null pointer is returned if not found. The array must be sorted in ascending order. The number of elements in the array is