# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### C++ Program to Find Largest Rectangular Area in a Histogram

Program code to check symmetric matrix -
C program to read elements in a matrix and check whether the given matrix is symmetric matrix or not. Symmetric matrix is a square matrix which is equal to its transpose. A is...

Binary Search Tree with Insertion Deletion -
C++ 'Binary Search Tree' insertion & deletion, finding an element, finding min element, max element, left child, right child, "recursive" and "nonrecursive" traversals, finding the number

C Programming Writing a Character to file -
In C to write the file, we must open the file in a mode that supports writing. For example, if you open a file in "r" mode, you won't be able to write the file as "r" is read only mode that

C Compute the Sum of Digits in an Integer -
C Program take the integer as input. Divide the input integer by 10, obtain its remainder and quotient. Increment the new variable with the remainder got at step 2. Repeat the

Making Your Functions to be Inline in C++ -
An inline function is a function in which body is inserted in the "place of its call". There are two ways to make your functions to be inline. The first one consists in 'simple definition' of

Program Find the Area of Scalene Triangle -
First Input the length of a side of the triangle. Then Input the 'length of another side' of the triangle, then input the angle between these sides of the triangle. The area of the Scalene

C++ Code to Calculate Standard Deviation -
Program calculates the standard deviation of 10 data using arrays. This program calculates the 'standard deviation' of a individual series using arrays. calculate "Standard Deviation",

Check whether a number is Prime number -
Prime numbers are positive integers greater than 1 that is only divisible by 1 and self. For example: 2, 3, 5, 7, 11 etc... C program input number and check whether the number is...