# C++ Programming Code Examples

## C++ > Mathematics Code Examples

### c++ program for complex numbers using class

Find ith Largest Number from a Given List -
It is an improvement in BST by adding 2 more key functions - 'rank()' and 'select()'. The time complexity of Order-Statistic tree generation is O(n+n*log(n)). Once the tree is constructed

Relational Operators in C++ programming -
In C++, This category of the operators is used to compare different values. The result of the operation is a Boolean value. The "Relational" operators are used in the form Operand1 and

C If Expression is Correctly Parenthesized -
C program code takes a expression as input and checks if the expression is correctly parenthesized. Take a expression as input and store it in the array. Check for the "(" ...

Program code to search for a Palindrome -
C Programming language code to search for a palindrome. Please enter a word, phrase or sentence below(type END to exit the program). String is a palindrome or it is not...

Program Code Displays Number in Words -
C Language code input a number and print it into words using for loop. Input number from user. Find total digits in n. Store reverse of n in j. Find total trailing zeros. Extract last digit

C++ language Implements the Hill Cypher -
Program to implement hill cipher. In classical cryptography, the Hill cipher is a polygraphic substitution cipher based on 'Linear Algebra'. Following discussion assumes an elementary

Find the Number of Integers Divisible by 5 -
C Program to which calculates the number of integers divisible by 5 in the given range. This C program takes the range as input and finds the number of integers divisible by 5 in range.

Code split an array from specified position -
Program code splits an array from specified position & add first part to the end. program first accepts an array. And then splits an array according to the user specification. Now it...