# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Program to Check if a Given Graph is Bipartite

C Program Check the Year is Leap Year or -
Check whether a year is Leap or not by using this Mathematical Logic. If a year is divisible by 4, 100 & 400 then it is a leap year. If a year is divisible by 4 but not divisible by 100 then...

Multiply Two Matrix by Multi Dimensional -
In this program, "enter the size "of 2 matrix at first. To multiply two matrices, the number of columns of first matrix should be equal to the "number of rows" to second matrix. C++ Code

C Finds Cube of a Number using Function -
C Program code input any number from user and find cube of the a number using function. Lets assign meaningful name to the function, say cube(). Function should accept a number

Find the Frequency of Substring in Strings -
Take a string and a substring as input. Store it in the arrays 'str[] & str1[]' respectively. Using For Loop to 'compare' str1[] with the str[]. Do step2 until the end of main string. During the

C Coding Checks the Character is Alphabet -
How to check whether a character is alphabet or not in C programming. Every printable and nonprintable symbol is treated as a character and has an ASCII value. ASCII value is unique

C++ Program to Remove All nodes which -
C++ Program demonstrates the Removal of All the nodes which don't lie in any Path with Sum greater than or equal to K. Create a new 'Binary Tree node' with given data. Truncates

C++ Performs Searching Based on Locality -
Searching based on Locality of Reference and also called Principle of locality. So Depending on the memory access pattern data elements are "reallocated". In general search, 80% time

Codes Binary Number to Decimal Number -
Takes the binary number (entered by user) as input and converts it into a decimal number using function. To understand this program, you should be familiar with the following C...