StringCalculator for C++