|
|
|
|
|
|
|
Hour 2
The Parts of a C++ Program |
|
|
|
|
|
|
|
|
Before we dive into the details of C++, classes, variables, and so forth, let's take an hour to get a sense of how a program fits together. In this hour you will learn: |
|
|
|
|
|
|
|
|
The parts of a C++ program |
|
|
|
|
|
|
|
|
How the parts work together |
|
|
|
|
|
|
|
|
What a function is and what it does |
|
|
|
|
|
|
|
|
The Parts of a Simple Program |
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|