#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc myInstance; // Define a variable and get its Item object auto v = myInstance.DefineVariable("v = 10"); // Use the item to get back to its parent uCalc instance auto parentInstance = v.uCalc(); // Perform another evaluation in the same context cout << parentInstance.EvalStr("v + 5") << endl; }