August 2001
Beginner
482 pages
10h 52m
English
The simple program from the first hour, HELLO.CPP, had many interesting parts. This section will review this program in more detail. Listing 2.1 reproduces the original version of HELLO.CPP for your convenience.
0: #include <iostream>
1:
2: int main()
3: {
4: std::cout << "Hello World!\n";
5: return 0;
6: }
|
Hello World!
On line 0 the file iostream is included in the file. As far as the compiler is concerned, it is as if you typed the entire contents of the file iostream right into the top of HELLO.CPP. |
Read now
Unlock full access