Preface
Acknowledgements
Chapter 1: Getting Started with C++
C++ Syntax and Semantics
Program Structures
Data Types
Operator Symbols
Words and Symbols with Special Meanings
Paper and Pencil Self Check #1
Arithmetic Expressions, Function Calls, and Output
Preceding Rules
Converting Numeric Types
Value-Returning Functions
Void Functions
Output Formatting
Paper and Pencil Self Check #2
Program Input
Input Streams
Keyboard Input Prompts
Files
Input Failure
Creating a Data File
Paper and Pencil Self Check #3
Lesson 1-1: C++ Syntax and Semantics, and the Program Development Process
Lesson 1-2: Arithmetic Expressions, Function Calls, and Output
Lesson 1-3: Program Input and the Software Design Process
Lesson 1-4: Debugging
Programs from Scratch
Chapter 2: Conditions, Logical Expressions, and Control Structures
Conditions and Logical Expressions
Boolean Data Type
Boolean Expressions
If-Then and If-Then-Else Statements
Nested Logic
State of an I/O Stream
Test Plans
Warning
Paper and Pencil Self Check #1
Looping with the While Statement
While Statement
Types of Loops
EOF Loops
Proper Loop Operation
Nested Loops
Paper and Pencil Self Check #2
Additional Control Structures
Break and Continue
Multi-Way Branching: Switch
Looping: Do-While
Looping: For
Paper and Pencil Self Check #3
Lesson 2-1: If-Then and If-Then-Else Statements
Lesson 2-2: Looping with the While Statement
Lesson 2-3: Additional Control Structures
Lesson 2-4: Test Plan
Lesson 2-5: Debugging
Programs from Scratch
Chapter 3: Functions, Scope, and Lifetime
Functions
Defining Void Functions
Physical Order and Logical Order
Exiting a Function
Functions with Parameters
Local Variables
Documentation of Functions
Paper and Pencil Self Check #1
Scope, Lifetime, and Value-Returning Functions
Scope of an Identifier
Lifetime of Variables
User-Defined Value-Returning Functions
Paper and Pencil Self Check #2
Lesson 3-1: Functions
Lesson 3-2: Scope, Lifetime, and Value-Returning Functions
Lesson 3-3: Debugging
Programs from Scratch
Chapter 4: Simple Data Types and Arrays
Simple Data Types
Numeric Constants
Char Constants
Char Processing
Enumeration Types
More on Type Coercion and Type Conversion
Side Effects
Paper and Pencil Self Check #1
One-Dimensional Arrays
Arrays as Parameters
Initialization of Arrays
Paper and Pencil Self Check #2
Two-Dimensional Arrays
Table Processing
Multidimensional Arrays
Passing Arrays as Parameters
Paper and Pencil Self Check #3
Lesson 4-1: Simple Data Types
Lesson 4-2: One-Dimensional Arrays
Lesson 4-3: Two-Dimensional Arrays
Lesson 4-4: Debugging
Programs from Scratch
Paper and Pencil Self Check Answers
Appendixes
Glossary