C++: Basic Concepts: Hello, World!: Your First C++ Program(Part 3)

Your First C++ Program
The next line, cout << "Hello world!"; results in the display of "Hello world!" to the screen. Try It Yourself
 * #include
 * using namespace std;
 * int main
 * cout << "Hello World!";
 * return 0;
 * }
 * return 0;
 * }

In C++, streams are used to perform input and output operations. In most program environments, the standard default output destination is the screen. In C++, cout is the stream object used to access it.

cout is used in combination with the insertion operator. Write the insertion operator as << to insert the data that comes after it into the stream that comes before.

Note: In C++, the semicolon is used to terminate a statement. Each statement must end with a semicolon. It indicates the end of one logical expression.