A terminal implentation of Calculator using C++