#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uc.DefineVariable("MyVar = 10"); uc.DefineConstant("MyPi = 3.14"); cout << uc.Eval("MyVar") << endl; cout << uc.Eval("MyPi") << endl; uc.EvalStr("MyVar = 20"); // Attempt to change MyVar cout << uc.Error().Message() << endl; uc.EvalStr("MyPi = 25"); // Attempt to change MyPi cout << uc.Error().Message() << endl; cout << uc.EvalStr("MyVar") << endl; cout << uc.EvalStr("MyPi") << endl; }