C++ Programming Code Examples
C++ > Computer Graphics Code Examples
Tower of Hanoi - A Graphical Representation
Code Finds the Sum of 2 Binary Numbers -
Take two Binary Numbers as input. Add each bits from the two binary numbers separately starting from LSB. The operations may be as follows. a) (0+0)=0, b) (1+0)=1, c) (1+1)=0 and
Function Overriding in The C++ Language -
Function overriding is a feature that allows us to have a "same function" in child class which is already present in the parent class. A child class inherits the data members and member
C++ Check Whether an Input Binary Tree -
This is a C++ Program to check whether tree is Subtree of another tree. Given two binary trees, check if the first tree is subtree of the second one. A subtree of a tree T is a tree S
Program Solves the Magic Squares Puzzle -
Using iteration, finds the Magic Square for a given odd sized number. A magic square is an arrangement of numbers from 1 to N^2 in an [N x N] matrix, with each number occurring...
C Program to displaying Day of the Month -
C programming code to implement calender. Program example to display day of month. Program will accept year, month and date from the user and will display the day of the
C Codings to HCF Highest Common Factor -
Program to Find HCF In C language. An H.C.F or Highest Common Factor, largest common factor of two or more values. For example 12 > 1, 2, 3, 4, 6, 12 and 18 > 1, 2, 4, 8, 18. HCF=4
Program Remove given Word from String -
This program takes string and its substring as input, removes the Substring from the string. Take a string, its substring as input and Store it in the array str[] & key[] respectively. Store
Egg Game graphic programming code in C -
Go back to normal graphics mode or deleting viewport. Checking the egg position. Display mouse pointer. Define the upper left boundry of mouse. Define the bottom right boundry