 # C++ Programming Code Examples

## C++ > Data Structures Code Examples

### Program to Implement Queue Using Two Stacks

C++ Coding Topological Sorting in Graphs - Using an adjacency matrix, displays the times at which the 'different times' at which nodes are visited and left thereby producing a linear ordering of vertices in a graph. And A graph is

C Language Coding Prints Fibonacci Series - Program to Fibonacci Series. Fibonacci Series generates subsequent number by adding two previous numbers and Fibonacci Series starts from 2 numbers F0 & F1. The initial values of

C++ Programs For Inorder Tree Traversal - C++ program, without recursion, displays the nodes of a "Particular Binary Tree" in inorder fashion without using recursive traversal. So Enter value of root node. Enter value of node

Printing 100 Ramanujan Numbers 2 Ways - C++ Sample code Print first 100 "Ramanujan Numbers" by TWO WAYS 1st way is printing ramunajan numbers from RN taking RN from 0 to INFINITY & print first 100 numbers. 2nd

Copying an Array involves index by index - C program code shall help you learn one of basics of arrays. Copying an array involves index-by-index copying. For this to work we shall know the length of array in advance,...

C Finds All Roots of A Quadratic Equation - Step by step descriptive logic to find roots of Quadratic Equation using Switch Case. Input coefficients of quadratic equation. Store it in some variable say a, b, c. Find discriminant of

Convert String to Lowercase using strlwr() - C code convert uppercase string to lowercase using 'For Loop'. Internally characters in C are represented as integer value known as 'ASCII' value. Which means if we write a or any other

Find the Subarray having a Maximum Sum - Function to find the maximum sum sub-array which includes mid of the sub-array. Take the input of the "Integer Array". Using Divide and Conquer approach break the Array. Compute