C++ Programming Code Examples
C++ > Computer Graphics Code Examples
Rotation of triangle
Code Converts Binary Number to Decimal -
C language code to convert binary to decimal number system. The Binary number system is base 2 number system & uses only 2 symbols to represent all its numbers i.e. 0 and 1. Input
C Code Sorts Set of Strings in Alphabetical -
In this program, user would be asked to enter a set of Strings and the program would sort & display them in Ascending alphabetical order. This C program would sort the input strings in
C Sample Code Prints the Pascal's Triangle -
Pascal's triangle is one of the classic example taught to "engineering students". It has many interpretations. One of the famous one is its use with bionomial equations. The triangle is
C Language Code Formula of Permutation -
Permutation refers number of ways in which set members can be Arranged or Ordered in some fashion. The 'Formula of Permutation' of arranging k elements out of n elements is
C Program to Count Words, Digits, Vowels -
Program code count number of words, digits, vowels using pointers. Program code Finding number of words, blank spaces, digits, special symbols, vowels using pointers. Counting the
C Reverse an Array without using another -
C reverse array without using another array relies on the above logic. What we need to do is maintain two array indexes. arrIndex that moves from size - 1 to 0. revIndex that moves
C Language Print Natural Numbers 1 to N -
C program print all natural numbers from 1 to n using loop. Input upper limit to print natural number from user. Store it in a variable say N. Run a For Loop from 1 to N with 1 increment.
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