A simple calculator implementation based on the codes in the book of <<The C++ Programming Language>>