# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Analog clock and calendar

C Language Codes Find Length of a String -
How to find 'Length of a string' without using in-built library function strlen() in C language. Effective way to find length of string without using strlen() function. In the C every string is

Code Calculate Score Intersecting Ngrams -
C Get ngrams for first word. Get ngrams for second word. Compare two arrays, count duplicates. Calculate score. Clean up. Return array of ngrams. Padd word according to one

Program Convert Decimal to Hexadecimal -
C Language Program code to take a decimal number as input and store it in the variable decimalnumber. Initialize the variable j=0 & copy decimalnumber to variable quotient.

C Language Calculation Divide Product PI -
C Calculations on a table, the radius of table, the diameter of the table, the circumference of the table, the area of a circle, calculate the radius, calculate the circumference, calculate

C++ Sample Codes Implement Merge Sort -
Merge-Sort is based on an algorithmic design pattern called Divide & Conquer. It forms tree structure. The height of the tree will be log(n) And we merge n element at every level of the

The C Language Print the Floyd's Triangle -
Floyd's triangle, named after 'Rober Floyd', is a Right Angled Triangle, which is made using natural numbers. Starts from 1, consecutively selects the next Greater number in Sequence.

C++ Code Add Two Matrix with 2D Arrays -
2 const variables row & col are used to define size. If we do not make both const then error found because without "const reserve word" they are behaving as variable. Before placing

Program Code Find all Factors of Number -
C program to input a number from user and find all factors of the given number using for loop. Factor of any number is whole number which exactly divides the number into whole