# C++ Programming Code Examples

## C++ > Mathematics Code Examples

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

Get Highest Frequency Character in String -
C Program finds 'highest frequency' character in a string. C Program checks which character has 'occured more number' of times & checks how many times these character has occured

Check Whether Number is Strong Number -
How to check Strong Numbers using loop in C. What is Strong number? Strong number is a special number whose sum of factorial of digits is equal to the original number. 145 is

Overridings Non-Virtual Functions in C++ -
See that problem. Even though we have the parent class pointer pointing to the instance of child class, the parent class version of the function is invoked. You may thinking why I

Print Armstrong Numbers from 1 to 1000 -
Program code print Armstrong Number from 1 to 1000. An Armstrong number is an n-digit base b number such that the sum of its (base b) Digits Raised to the Power n is the number

Finding Last Occurrence of Word in String -
Logic to Search 'Last Occurrence' of a word is almost similar to searching first occurrence of a word in string. Just with last occurrence of a word do not terminate loop if first occurrence

Print Day of Week Name with Switch Case -
C program code input week number(1-7) and print day of week name using switch case. C program to find week day name using switch case. Input day number from user. Store it in

C coding Basic binary search tree routines -
Insert, swap, search value, search minimum and search maximum values. Destroy, count tree nodes. Insert a tnode into the binary tree. Traverse the tree to get a pointer to the

C Language Code Display Prime Numbers -
Any whole number which is Greater than 1 & has only two factors that is 1 and the number itself, is called a "Prime Number". Other than these two number it has No Positive Divisor.