# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Program to Check if a Given Binary Tree is an AVL Tree or Not

C ++ Access Functions and Encapsulation -
In C++ language, Encapsulation is achieved using access specifiers. In encapsulation we make all member variables private, provide public "functions" which allow user to work

Code Searchs for an Element in Linked List -
C program search for an element in the linked list using recursion. Uses recursive function & search for an element in a Linked List. Linked List is an Ordered set of Data Elements, each

C Computing the Product of Two Matrices -
Code computes the product of two matrices. This program accepts the 2 matrices and then find the product of 2 matrices. Develop functions to read a matrix, display a matrix

Find k Numbers closest to Median of the S -
Firstly We need to find k numbers which have a minimum difference with the median of the data set. It includes sorting using 'Quick Sort' and then printing k numbers as a result. Time

C Language Program Calculate Percentage -
Percent means per cent (hundreds), a ratio of the parts out of 100. The symbol of percent is %. We count 'Percentage of Marks Obtained', return on investment and Percentage can go

C Decimal to Binary, Octal HEX Converting -
C programming converting example. Decimal number to Binary number, Octal number and HEX number converter. Enter any number to be converted. The Number has to be in the...

Simple C++ Codings for Virtual Base Class -
Declare & Define the Functions getnumber() and putnumber(). And declare and define the function 'getmarks()' and 'putmarks()'. Create the derived class sports virtually derived from

Calculate Sum of Array in C Programming -
C language programming code to calculate sum of array. This program should give an insight of how to parse (read) array. We shall use a loop and sum up all values of the array.