# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### C++ Program to Find the Transitive Closure of a Given Graph G

Function Chaining Calls Using This Pointer -
Example of using this 'pointer' is to return the "Reference of current object" so that you can chain "function calls", this way you can call all the functions for the current object in one go.

Undirected Graph contains a Eulerian Path -
Check if this graph is Eulerian or not. Check if all non-zero degree vertices are connected. If graph has no "odd degree vertex", there is at least one Eulerian Circuit. And if graph as two

Fibonacci Sequence up to Certain Number -
Program to generate Fibonacci Sequence up to a certain number. The Fibonacci sequence is a series where the Next term is the Sum of Pervious 2 terms. The First Two terms of the

C Program convert Decimail nos to Roman -
Convert decimail nos to roman equivalent upto 10,000. Function for generating roman equivalent of 1000's. Function for generating roman eq of 100's. Function for generating...

C++ Program to Implementing LRU Cache -
A Queue Node (Queue is implemented using Doubly Linked List). And a FIFO collection of Queue Nodes. A hash (Collection of pointers to Queue Nodes). A utility function to create

Check Even or Odd using Bitwise Operator -
C Language program code sample input any number and check whether the given number is even or odd using bitwise operator. How to check whether a number is even or odd using

C Program Code Clear NTH bit of Number -
Program Input number and nth bit position to clear from user. Store it in some variable say j and n. Left shift 1, n times i.e. 1 << n. Perform bitwise complement with the above result...

C Matrix of Order M x N and Interchange -
C language program code to accept a matrix of order M x N and store its elements and interchange the main diagonal elements of the matrix with that of secondary diagonal