# C++ Programming Code Examples

## C++ > Conversions Code Examples

### Convert Centigrade to Fahrenheit

The C++ Implementation for Binary Heap -
Capacity is the capacity of the "binary heap". Duplicates are allowed. "Throw Overflow" if container is full. Find the smallest item in the "priority queue". Return the smallest item, or

C Programming coding Calendar example -
This is because a leap year does not strictly fall on every fourth year. If a year is divisible by 4, then it is a leap year, but if that year is divisible by 100, then it is not a leap year.

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...

Code Finds product of Digits of a Number -
C program code input a number and calculate product of its digits. I have divided the logic to calculate product of digits in three steps. Extract last digit of the number. Multiply the

Computing The Volume of A Tetrahedron -
Program to finds the volume of tetrahedron. Call the four vertices of the tetrahedron (a, b, c), (d, e, f), (g, h, i), and (p, q, r). Now create a 4-by-4 matrix in which the coordinate triples

Program To Implement Doubly Linked List -
Creating double link list. and Insertion at the beginning. Insertion of element at particular position. "Deletion" of element from the List. 'Display' elements of doubly link list. Reverse

Find sum of Even Numbers in given Range -
Input upper limit to find sum of even number. Store it in a variable say N. Initialize another variable to store sum with 0 say sum = 0. To find sum of even numbers we need to iterate

C Programming Comparing Three Integers -
Compare three integer variables is one of the simplest c program you can write at ease. In this program, you can either take input from user using scanf() function or statically define