exercise solutions for The c++ programming language