#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; // Define variables where the type is inferred from the initial value uc.DefineVariable("myNumber = 10.5"); uc.DefineVariable("myText = 'hello'"); uc.DefineVariable("myFlag = true"); // Get the item and then its data type name auto item1 = uc.ItemOf("myNumber"); cout << "'myNumber' is of type: " << item1.DataType().Name() << endl; auto item2 = uc.ItemOf("myText"); cout << "'myText' is of type: " << item2.DataType().Name() << endl; auto item3 = uc.ItemOf("myFlag"); cout << "'myFlag' is of type: " << item3.DataType().Name() << endl; }