C++ Programming Code Examples
C++ > Computer Graphics Code Examples
Program to implement Ellipse Drawing Algorithm
Check Vowel or Consonant use switch case -
English Alphabets a, e, i, o, u both lowercase & uppercase are known as vowels. Alphabets other than Vowels are known as Consonants. Input an alphabet from user. Store it in some
Code Perform Scalar matrix multiplication -
C program to read elements in a matrix and perform scalar multiplication of matrix. C program for scalar multiplication of matrix. How to perform scalar matrix multiplication
Program to Accept Paragraph using scanf -
Here scanf will accept characters entered with spaces. It also accepts the Words, new line characters. Represent that all characters are accepted except tab(t), whenever t will
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 Codes Calculates the Area of a Triangle -
This C Program code calculates the area of a triangle given it's three sides. The formula or algorithm used is: Area = sqrt(s(s - a)(s - b)(s - c)), where s = (a + b + c) / 2 or perimeter / 2. &
Encode the String Display Encoded Strings -
Read a 'five-letter' Word into the pc, and then encode the word on a letter-by-letter basis by subtracting 30 from the Numerical value that is used to represent each Letter. Thus if ASCII
A Calculator by Switch Case and Functions -
Create menu driven Calculator that performs basic mathematic operations (Add, Subtract, Multiply, Divide) use switch case & functions. The calculator should input two numbers and
Find the Length of the Linked List without -
C Language program Find the Length of the linked list without using recursion. Program, using iteration, counts the number of nodes in a Linked List. A linked list is an ordered set