May 2002
Beginner
320 pages
6h 18m
English
Your first task is to add a line to the empty program so it won't be empty any longer. That line will display the program result.
Listing 2.1 shows the new version of main.cpp. A star before the line number indicates that the line is new. Do not enter the *, the line number, or the : in your code. These marks and numbers are only shown to help you to connect descriptions of the code with lines from the example.
*1: #include <iostream>
*2:
*3: using namespace std;
*4:
5: int main(int argc, char* argv[])
6: {
*7: // Without "using" statement, this would be std::cout
*8: cout << "Hi there!" << endl; // "endl" = next line
9: return 0;
*10: }
|
Hi there!
This program ... |
Read now
Unlock full access