A step by step calculator written in c++