C++ commandline calculator. Supports brackets but not opertaor precedence