# C++ Programming Code Examples

## C++ > Strings Code Examples

### Program to Encode a Message Using Playfair Cipher

C Code Increment & Decrement Operators -
C programming language has two operators increment ++ and decrement -- to change the value of an operand (constant or variable) by 1. Increment ++ increases value by 1 whereas

Implement Stack Operations Using Arrays -
Program code for implementing a stack using arrays. It involves various operations such as push, pop, stack empty, stack full and display. We have created 'stack' structure. We have...

C++ Compute Power with pow() Function -
In this 'C++' sample, you will learn to compute power to a number manually, by using 'pow()' function. Takes two numbers from the user (a base number and an "exponent") & calculates

C Finds Maximum Between Two Numbers -
Finding maximum in general is comparison of two numbers. In C language we compare two quantities using relational operator. We using either > or < operator to compare 2 numbers

Checks Cycle in a Graph using Topological -
Displaying the "Topological Sort Method" of finding whether a given graph contains cycle or not using Kosaraju's Algorithm. Enter the source and destination. Cycles exist in graph.

Remove Spaces from Strings or Sentences -
To remove or delete spaces from the string or sentence, enter a 'string'. Then start checking for spaces. If 'Space will be Found', then start 'Placing the next character' from the space to

C Language Implement Specify Command -
Put on the motor. Address of digital control port. Check whether FDC is ready. Beginning of command phase. Input the command parameters. Enter command parameters...

C Code Finds the Sum of all Nodes in Tree -
C Program finds the sum of all nodes in a tree such that any node is sum of values at left and right sub tree. Function to find depth of a tree. Function to modify the tree. Function to