This is from the programming book "C++ Programming In Easy Steps Fourth Edition"