Basic syntax of c++
#include<iostream> // it is a library used for display
#include<conio.h> // its is also a library used for input output statement
using namespace std;
main() // it is the start of you your program its means form here you will
// start the coding . . computer only understand this main
{ // starting your program from starting
cout<<"here is my first program in c++ "; // cout mean show me . . . << mean the thing infront of this <<
// " is used to give a simple string and you should put this after
// finishing your line . . . . and this ; is use to finish your one
// statement.
}
/* when you are going to save your this program you should give his extension cpp */
put this program in your Dev c++ compiler
Comments
Post a Comment