# C++ Programming Code Examples

## C++ > Mathematics Code Examples

### C++ Program to Find Quotient and Remainder

C++ Program for Create Virtual Functions -
'Virtual Function' is a special form of member function that is 'declared within a base class' and 'redefined' by a derived class. "virtual" is used to create a virtual function, precede the

C Program code find LCM of two numbers -
C program code input two numbers and find LCM (Lowest Common Multiple) using loop. Input two numbers from user. Store them in some variable say j1 and j2. Find maximum...

C++ Implements Queue using Linked List -
C++ program, "using iteration", implements the list of elements removed from the queue in first in first out mode using a Linked list. A linked list is an ordered set of data elements,

Find Length of String by Defined Function -
C Program to find Length of string with using user 'Defined function'. By using user-defined function write a code to find Length of String. After accepting the string from the user we're

C Least Significant Bit (LSB) of a number is -
C program code input any number from user and check whether the Least Significant Bit (LSB) of the given number is set (1) or not (0). How to check whether the least significant...

Performs Edge Coloring to the Line Graph -
Takes the input of the number of 'vertexes' & the number of edges in the graph. It takes the input of vertex pairs for the given number of edges. It generates a line graph for the given

C++ Check if a Point lies Inside or Outside -
'C++ Program' to Check if a Point d lies inside or outside a circle defined by Points a, b, c in a 'Plane'. For any point t (xt, yt) on the plane, its position with respect to the circle defined

C++ Codings Shutdown Computer System -
To shutdown and restart you computer using C++, just call the function system() of stdlib.h library which will call the cmd or terminal. So to shutdown and 'restart your computer', just