 # C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Program for 3-D Transformation

Find Angles of triangle if two angles given - C Program to input two angles from user and find third angle of the triangle. How to find all angles of a triangle if two angles are given by user using C programming. Sum of angles of

Check if a Number is Positive or Negative - C Language check if a number is positive or negative using nested if...else. This program takes a number from user & checks whether that number is either positive or negative or

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

Program Code to Implement Bellmanford - This C++ Language program implements the "Bellmanford Algorithm" is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in weighted

C++ Basic Operation Addition Subtraction - "Addition(+)" of 2 vectors. "Subtraction(-)" of 2 vectors. "Multiplication" of vector with the scalar. "Cross" product of 2 vectors. Scalar(or dot) product of 2 vectors. Negative of vectors

Bitwise operators are used in C Language - C Program Code Bitwise operators During computation, mathematical operations like: addition, subtraction, addition and division are converted to bit-level which makes and

C Program to Find Reverse of any number - C program code to input a number from user and find reverse of the given number using for loop. Input number to find reverse. Store it in some variable say j. Declare & initialize...

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