#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; // This tests the precedence of power (^), multiplication (*), and addition (+). // The correct evaluation is 5 + (2 * (3^2)) -> 5 + (2 * 9) -> 5 + 18 -> 23. cout << uc.EvalStr("5 + 2 * 3^2") << endl; }