a calculator written by cplusplus