A complex calculator written in C++