Calculator in C-plus-plus