Hello,world! Part 4

Hello, World!
10
4/6













Your First C++ Program
The next line, cout << "Hello world!"; results in the display of "Hello world!" to the screen.
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.
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.
Comments
Post a Comment