#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto MyArray = uc.DefineVariable("MyArray[3]"); uc.DefineVariable("MyArrayStr[] = {'aa', 'bb', 'cc'}"); uc.Eval("MyArray[0] = 111; MyArray[1] = 222; MyArray[2] = 333"); cout << uc.EvalStr("MyArray[0]") << endl; cout << uc.EvalStr("MyArray[1]") << endl; cout << uc.EvalStr("MyArray[2]") << endl; cout << uc.EvalStr("MyArrayStr[0]") << endl; cout << uc.EvalStr("MyArrayStr[1]") << endl; cout << uc.EvalStr("MyArrayStr[2]") << endl; cout << MyArray.Count() << endl; cout << uc.ItemOf("MyArrayStr").Count() << endl; }