C++ Primer Plus solutions (review and exercises)