C++ Primer 5th edtion exercises