Sams C++ Book code