# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### Inverted full pyramid using *(Asterisk)

C code Existing Stream with Fifferent File -
Open text file for reading, Create a text file for writing, Open binary file for reading, Create binary file for writing, Open text file for read/write, Create text file for read/write,

C Language A Puzzle Finding the Number -
The main logic lies in displaying the numbers in the screen. The X & Y coordinate of each function is calculated with respect to mx "maximum of x value" & my "maximum of y

C Read Integers into an Array & Reversing -
C Program using Pointers to Read in an array of integers and Print its elements in Reverse order. We have declared one pointer variable and one array and address of first element of

C++ Language Add Digits of any Number -
To add digits of any number in C++, we enter the number to add their digits & displays the "Addition Result" of the digits of the entered number on the output screen as shown here

Trim Leading & Trailing white spaces from -
I already explained how to remove leading as well as trailing white space characters from a given string. In this program we will Combine the logic of both in a single program. Logic to

C Computing the Product of Two Matrices -
Code computes the product of two matrices. This program accepts the 2 matrices and then find the product of 2 matrices. Develop functions to read a matrix, display a matrix

C Put Even & Odd Elements of an Array in -
C Program puts even & odd elements of an array in 2 separate arrays. The program first finds the odd and even elements of the array. Then the odd elements of an array is stored

C++ Searching Using Self-Organizing Lists -
"Self-Organizing" List updates on the basis of 'last searched item'. The sequential searching approach is used. In general search, 80% time only specific 20% of data is accessed. Sample