# C++ Programming Code Examples

## C++ > Strings Code Examples

### Program to Implement Knuth-Morris-Pratt Algorithm (KMP)

Programs Performs Naive String Matching -
C++ Program perform Naive String matching algorithm. "String Searching" algorithm is an important class of string algorithm that try to find a place where one or several strings (also

Code Find Prime Numbers in given Range -
C Program code Find out the prime numbers between 1 to 100, 100 to 999... Input a range, for e.g. if you want the Prime Numbers from 100 to 999 then enter numbers 100 and 999...

C Coding Implement Queues using Stacks -
C language program code to ask the user for the operations like insert, delete and display. According to the entered option access the respective function using switch statement.

C++ Finding Transitive Closure of a Graph -
Displaying the 'transitive closure matrix' of a graph. The reachability of a particular node 'i' towards all node pairs ('i','j') is known as the transitive closure of a graph. So this matrix is

Program to implement a boolean function -
Color at stars position. Start in upper corner. Gives a message to user. For checking that a particular no. Decides whether output is 1 or 0. Normal mux implementation. Decides...

C Code Perform all Arithmetic Operations -
C program input two numbers and perform all arithmetic operations. How to perform all arithmetic operation between two numbers in C programming. C program to find sum,...

Program to Converts Celsius to Fahrenheit -
Fahrenheit & Celsius are two unit for measure temperature. Formula to convert "Celsius" to Fahrenheit using this formula you can change temperature fahrenheit to celsius. Use temp

Convert Binary Number Octal Vice-Versa -
You will learn to convert "binary number" to octal, and octal number to binary manually by creating a "user-defined" function. In this, first convert the binary number to "decimal".