
Hello.
Now Will Show You That C++ Is So Easy Programming Language.
Lesson1: Hello World.
Here The Code Will Be
Code:
#include <iostream>
using namespace std;
int main(){
cout << "Hello World"<<endl;
system("pause");
return 0;
}
Now Let's Understand The Code.
------------
#include
-This is a key for C++, the main code can't be without it, in this tutorial will be "#include <iostream>
It need's to be at the top of the code like you see.
------------
using namespace std;
-Taken for "using the standard namespace"
-Will Let you use cout and cin when you need.
------------
Code:
int main(){
cout <<"Hello world!" <<endl;
return 0;
}
-The Main Function of the program
-You Need to write the main function to start every program you write.
-You must include main funtion for the program to execut.
-You need to finish writing the code with "return 0;" this ends the Code.
**At Link "cout <<"Hello world!" <<endl;" The Text Hello world you can replace it, this is the text is writ'n when the program start's up
This Will Pop Up When you Click On Run Button Or F5
Click On "Yes" Button

Program

Sorry If The English Was bad.
If i forgot anything please tell me
Thanks 
Hope You Understand this.
Need Any Help, Contact Me at Skype: Mation.vis (Please Write SSH And Your Name In The Request Nor will no accept it)
Bookmarks