|
|
|
|
|
2
C++ Syntax and Semantics, and the Program Development Process |
|
|
|
| |
 |
|
|
|
|
The Elements of C++ Programs |
|
|
|
| |
 |
|
|
|
|
C++ Program Structure |
|
|
|
| |
 |
|
|
|
|
Syntax and Semantics |
|
|
|
| |
 |
|
|
|
|
Theoretical Foundations: Metalanguages |
|
|
|
| |
 |
|
|
|
|
Syntax Templates |
|
|
|
| |
 |
|
|
|
|
Naming Program Elements: Identifiers |
|
|
|
| |
 |
|
|
|
|
Matters of Style: Using Meaningful, Readable Identifiers |
|
|
|
| |
 |
|
|
|
|
Data and Data Types |
|
|
|
| |
 |
|
|
|
|
Overview of C++ Data Types |
|
|
|
| |
 |
|
|
|
|
Background Information: Data Storage |
|
|
|
| |
 |
|
|
|
|
Integral Types |
|
|
|
| |
 |
|
|
|
|
More About the char Type |
|
|
|
| |
 |
|
|
|
|
Floating Point Types |
|
|
|
| |
 |
|
|
|
|
Naming Elements: Declarations |
|
|
|
| |
 |
|
|
|
|
Variables |
|
|
|
| |
 |
|
|
|
|
Constants |
|
|
|
| |
 |
|
|
|
|
Software Engineering Tip: Using Named Constants |
|
|
|
| |
 |
|
|
|
|
Matters of Style: Capitalization of Identifiers |
|
|
|
| |
 |
|
|
|
|
Taking Action: Executable Statements |
|
|
|
| |
 |
|
|
|
|
Assignment |
|
|
|
| |
 |
|
|
|
|
Increment and Decrement |
|
|
|
| |
 |
|
|
|
|
Output |
|
|
|
| |
 |
|
|
|
|
Beyond Minimalism: Adding Comments to a Program |
|
|
|
| |
 |
|
|
|
|
Program Construction |
|
|
|
| |
 |
|
|
|
|
Blocks (Compound Statements) |
|
|
|
| |
 |
|
|
|
|
The C++ Preprocessor |
|
|
|
| |
 |
|
|
|
|
Program Entry, Correction, and Execution |
|
|
|
| |
 |
|
|
|
|
Entering a Program |
|
|
|
| |
 |
|
|
|
|
Compiling and Running a Program |
|
|
|
| |
 |
|
|
|
|
Software Engineering Tip: Understanding Before Changing |
|
|
|
| |
 |
|
|
|
|
Finishing Up |
|
|
|
| |
 |
|
|
|
|
Problem-Solving Case Study: Mileage |
|
|
|
| |
 |
|
|
|
|
Testing and Debugging Hints |
|
|
|
| |