Introduction:
The source code of a c++ program is stored on the disk with file extension cpp (cpp stands for c plus plus)
Structure of c++ programs:
A c++ program consists of three main parts:
The instructions that are given to the compiler before the beginning of the actual program is called Preprocessor Directives also known as compiler Directives
Example:
#include<iostream>
using namespace std;
main()
{
cout<<"<<Life is beautiful";
}
The source code of a c++ program is stored on the disk with file extension cpp (cpp stands for c plus plus)
Structure of c++ programs:
A c++ program consists of three main parts:
- Preprocessor Directive
- The main() function
- c++ statements
The instructions that are given to the compiler before the beginning of the actual program is called Preprocessor Directives also known as compiler Directives
Example:
#include<iostream>
using namespace std;
main()
{
cout<<"<<Life is beautiful";
}
great
ReplyDeletezaberdast intro
ReplyDelete