A simple calculator for basic operations in C++