| |
|
As you have seen in the last several lessons, the organization of a C++ program is very similar to the organization of a C program.
-
C++ relies on an external standard library to provide input/output. The information the program needs to use this library resides
in the library file iostream.h.
-
C++ uses a preprocessor to handle a set of directives, such as the include directive, to convert the program from its
preprocessing form to pure C++ syntax. These directives are introduced by the symbol #.
-
The function main() is used as the starting point for execution of the program. It obeys the C++ rules for function
declaration. The function main() implicitly returns zero, indicating normal termination. Other return values would
indicate an error condition.
|