#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto MyVar = uc.DefineVariable("x = 100");
   cout << uc.EvalStr("x") << endl;

   uc.EvalStr("x = 200");
   cout << uc.EvalStr("x") << endl; // x can change here

   // Locking an item prevents it from being changed
   MyVar.IsProperty(ItemIs::Locked, true);

   uc.EvalStr("x = 300"); // x cannot change here
   cout << uc.EvalStr("x") << endl; // x retains the previous value




}