 # C++ Programming Code Examples

## C++ > Algorithms Code Examples

C++ Program to Find LCM of two Integers - Examples on different ways to calculate LCM ("Lowest Common Multiple") of two integers using loops and decision making statements. "LCM of two integers" a and b is the smallest

C++ Strings Matching using String Library - C++ program performs string matching using "String library" of C++. A text and a pattern is given as input. The Pattern is 'searched' for in text and all instances of the pattern are given

C Code Counts Number of Words in String - C program to 'count total number' of words in a string using Loop. To count total number of 'Words in a String' we just need to count total number of white spaces. Includes single blank

C++ Return the Structure from a Function - In this C++ example, we have "two functions" one gets the values from user, assign them to structure members and returns the structure and the other function takes that structure as

C++ Program Find Quotient & Remainder - In program, user enter 2 integers (divisor and dividend), computes quotient and remainder. To compute 'quotient and remainder', divisor and dividend should be integers. The division

C++ Program to Implements the B+ Tree - A B+ tree is an n-ary tree with a variable but often large number of "children per node". A B+ tree consists of a root, internal nodes and leaves. The root may be either a leaf or node

Switch Statement Calculates Grade Points - A simple c++ program which shows using of switch statement in c++. C++ Program which takes input a grade and display Grade Points Average GPA. Program takes inputs A,a, B,b,

Print to Binary Numbers Pyramid Patterns - C code binary numbers pyramid pattern. First and Third Line is Starting with 1, While 2nd & 4th Line is starting with 0, So for First & Third Line count will be 1 and for even Line Number