Set Calculator in C++