C++ Primer4 Test