Creating terminal calculator c++