Code for Chapter 1 of Beginning C++