#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; cout << "Parsing the expression '100 / 4'..." << endl; { uCalc::Expression parsedExpr("100 / 4"); parsedExpr.Owned(); // Causes parsedExpr to be released when it goes out of scope //var parsedExpr = uc.Parse("100 / 4"); cout << "Evaluating the result..." << endl; cout << "Result: " << parsedExpr.Evaluate() << endl; } }