Listing and exercises from the PRmer 6th edition C++ book