 # C++ Programming Code Examples

## C++ > Beginners Lab Assignments Code Examples

### Program to Perform Integer Partition for a Specific Case

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

C++ Programs Finds kth Smallest Element - "Partitioning the array" on the basis of values at high as pivot value. Swapping value at high and at the index obtained. Partitioning array using last element as a pivot. And recursively

Reading From and Writing to a File in C++ - While writing C++, coders write information to a file from the program using the "stream" insertion operator (<<) and reads information using the "Stream Extraction" Operator (>>).

Take decimal number as input & converts - C Program take a decimal number as input. Divide the input number by 8 and obtain its remainder and quotient. Store the remainder in the array. Repeat the step 2 with quotient

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

Print the Kind of Rotation the AVL Tree is - Program to print the kind of rotation that is performed when an 'Element is inserted' or deleted from tree. In Discrete Mathematics, tree rotation is an operation on a binary tree

C++ Checking if a Given Graph is Bipartite - Bipartite Graph is a graph in which the set of 'vertices' can be divided into 2 sets such that all vertex should be present in either set 1 or set 2 but not both, and there should no edge

Find Maximum Numbers of Edge Disjoint - C++ program displays the maximum number of edge disjoint paths present between two vertices. 'Maximum number' of edge disjoint paths refers to the maximum flow or shortest