CPP program to remove single line comment from text file – C/C++ style Comments

C++ program to remove single line comment

In this C++ program we will remove all single line comments that start with double slash(//). This program is a part of the same compression utility program in which we will input any text file and will receive output file without any single line comment. C++ Program to remove multi-line comment The program is developed […]

CPP program to remove multi line comment from any file

C++ program to remove multi line comment

This C++ program is a part of compression utility that we will create in this series of programs. This utility will help us to compress all the given files in any folder and remove all the extra spaces and new lines, tabs, comments from any executable text file. The idea of this program was originally […]

CPP Program to generate hollow star squre

hollow star square

This C++ program generate hollow star square using for loop. The program basically manipulate the space before the star(*)  and after the stars. The program was generated on Windows 10 and compiled and executed on Dev C++ IDE. /* program to print blank rhombus made by : rakesh kumar */ #include #include using namespace std; […]

CPP Program to generate magic squares

A magic square of order n is an arrangement of n^2 numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant. A magic square contains the integers from 1 to n^2. The constant sum in every row, column and diagonal […]

CPP Program to convert number into Words

number into words

This C++ program convert any integer number between zero to 10000000 and convert it into its equivalent Words. The program is divided into parts and heavily using function to reduce mundane tasks. The whole program was written in Windows 10 environment in Dev C++ IDE. Here is the C++ code to convert number into Words. […]

CPP Program to print number Rhombus

rhombus of number

Number rhombus is one of the best example to teach and show mastery on looping at any stage. The rhombus program is here,This example was developed  in windows 10 environment using DEV C++ IDE but you can run this program in any environment as we have not used any environment specific libraries. /* Program to […]