Hello,world! Part 2

C++ Tutorial
Basic Concepts
Hello, World!
10
2/6
               

Your First C++ Program



The C++ compiler ignores blank lines.
In general, blank lines serve to improve the code's readability and structure. 
Whitespace, such as spaces, tabs, and newlines, is also ignored, although it is used to enhance the program's visual attractiveness.
#include <iostream>
using namespace std;

int main()
{
cout << "Hello world!";
return 0;
}
Try It Yourself

In our code, the line using namespace std;tells the compiler to use the std (standard) namespace
The std namespace includes features of the C++ Standard Library.

Comments