print hello world on c 2b 2b

Solutions on MaxInterview for print hello world on c 2b 2b by the best coders in the world

showing results for - "print hello world on c 2b 2b"
Maximus
12 Jan 2017
1/*These are comments. They are used to assist the programmer.
2They do not affect the program in any way.
3Write whatever you want*/
4#include <iostream> //preprocessor directive (use input/output)
5
6using namespace std; //use standard definitions
7
8//This is the "main" function. C++ will start executing code here
9int main(){ //bracket signals the start of the main function
10         cout << "Hello, world!" << endl; //display with a new line
11         //main must return an integer. 0 means success, else fail
12         return 0; 
13} //end of the main function