The Universal Machine: A Multimedia Introduction to Computing

Programming in C++

Table of Contents (for 6 of 16 chapters)

Chapter 3. A Taste of C++
3.1 "Hello, universe!"
3.2 Arithmetic in C++
3.3 A change machine
3.4 The char data type
3.5 Programming as problem solving: making ATM deposits
3.6 Beyond C++--: more types and operators (optional)
A function droid`
Chapter 5. Classes: an outside look
5.1 Abstract data types
5.2 Constructors and members
5.3 The LOOKOUT class library
5.4 Beyond C++--: browsing C++ header files (optional)
A class can keep information private
Chapter 7. Structured programming with control structures
7.1 Conditionals
7.2 Using conditionals--interactive and menu-driven programs
7.3 Repetitions
7.4 Common loop idioms
7.5 Preventing and removing bugs in loops
7.6 Programming as problem solving: ATM interface
7.7 Beyond C++--: more types, operators and control structures (optional)
definite loop structure
Chapter 9. Functions and decomposition
9.1 Flow of control through function calls
9.2 Local and global variables
9.3 Return values
9.4 Functional decomposition
9.5 Parameters
9.6 Function prototypes
9.7 Preconditions and postconditions
9.8 Recursion (optional)
9.9 Programming as problem solving: the ATM by decomposition
Global vs. local scope of variables
Chapter 11. Strings and arrays
11.1 Subscripts in Lstrings.
11.2 Arrays of homogeneous elements
11.3 Searching and sorting
11.4 Two-dimensional arrays
11.5 Beyond C++--: inside arrays (optional)
Inside an IntArray
Chapter 14. Classes: an inside look
14.1 Classes create types
14.2 Inheritance via class derivation
14.3 The Automatic Teller Machine, one more time!
14.4 Another example: Files
14.4 Beyond C++--: inline functions and dynamic binding (opt.)

Appendix: C++ language structures

An inheritance hierarchy

Back to themes of The Universal Machine
Back to features of the book
Back to home page for The Universal Machine