#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto Int32Var = uc.DefineVariable("Int32Var As Int32"); auto ByteVar = uc.DefineVariable("ByteVar As Byte"); auto StrVar = uc.DefineVariable("StrVar As String"); auto SngVar = uc.DefineVariable("SngVar As Single"); Int32Var.Value("4.25"); // Will be converted to integer ByteVar.Value("-1"); // Will be converted to unsigned byte StrVar.Value("'Test'"); SngVar.Value("1 + 0.25"); cout << uc.Eval("Int32Var") << endl; cout << uc.Eval("ByteVar") << endl; cout << uc.EvalStr("StrVar") << endl; cout << uc.EvalStr("SngVar") << endl; }