Practical C++
Programming
Teacher's Guide
Introduction
This guide is designed to help with the classroom presentation of the material in Pracctical C++
Programming. It contains a set of teacher's notes for each chapter which give you information about
the key concepts covered in the chapter as well some ideas for in-class demonstration.
The live demonstration section alrets you to the live programs available for demonsration in class.
There is also a set of review questions for each chapter with answers. (The “Quiz” document contains
these questions without answers.)
Hopefully this guide will make your teaching of C++ a little easier.
Table of Contents
Chapter 1: What is C++?.............................................................................................................................3
Chapter 2: The Basics of Program Writing..................................................................................................4
Chapter 3: Style...........................................................................................................................................7
Chapter 4: Basic Declarations and Expressions...........................................................................................9
Chapter 5: Arrays, Qualifiers, and Reading Numbers...............................................................................14
Chapter 6: Decision and Control Statements ............................................................................................19
Chapter 7: The Programming Process........................................................................................................21
Chapter 8: More Control Statements..........................................................................................................24
Chapter 9: Variable Scope and Functions .................................................................................................27
Chapter 10: The C++ Preprocessor............................................................................................................34
Chapter 11: Bit Operations........................................................................................................................36
Chapter 12: Advanced Types ....................................................................................................................38
Chapter 13: Simple Classes........................................................................................................................40
Chapter 14: More on Classes.....................................................................................................................43
Chapter 15: Simple Pointers.......................................................................................................................45
Chapter 16: File Input/Output....................................................................................................................48
Chapter 17: Debugging and Optimization.................................................................................................51
Chapter 18: Operator Overloading.............................................................................................................53