practice for the book "The C++ Programming Language"