CPP CODES FROM "THE C++ PROGRAMMING LANGUAGE"