Intro to c++ | Enhance your knowledge by learning new things |


Hi guys...

Welcome to my blog....

Today I am going to teach you the basics of c++for creating simple as well as advanced programs as we move ahead in this series....

So let's start right know...

First of all c++ contains header files which are required for the functioning and working of codes....
Then comes the body section which contains the main program....
Some of the header files are...

#include<iostream.h>
#include<iomanip.h>
#include<conio.h>

These are the simple and easy header files that has to be included in every program for it's functioning and working....

In the main section... You need to declare the variables that are required by the program either for mathematical calculations or for logical operations....

Also you need to add clear screen code to clear the screen after every successful checking of the program or after execution of the program....

Then the body contains different codes which is needed for the designing the program...

And the main basic things is that almost every sentence must end with a semicolon ;

And at the end you need to add
'getch()' for enabling the display of your results after execution of the program....

Click the below link to get the code of simple c++program as an example...

1). Program to find the area of a circle....

Comments

Popular Posts