#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; // Explicit type definition uc.DefineVariable("explicitInt As Int = 123"); // Type inferred from the initial string value uc.DefineVariable("inferredStr = 'hello'"); // Type defaults to Double as no type or value is given auto defaultVar = uc.DefineVariable("defaultVar"); cout << "explicitInt type: " << uc.ItemOf("explicitInt").DataType().Name() << endl; cout << "inferredStr type: " << uc.ItemOf("inferredStr").DataType().Name() << endl; cout << "defaultVar type: " << defaultVar.DataType().Name() << endl; }