C++ Primer 5th  exercise answers.