a console calculator using c++11