A calculator in C++