#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uc.DefineConstant("LOCKED_VAL = 1000"); cout << "Initial value: " << uc.Eval("LOCKED_VAL") << endl; // 1. End-user attempts to assign a value. This should fail. uc.Eval("LOCKED_VAL = 2000"); cout << "Error after assignment attempt: " << uc.Error().Message() << endl; cout << "Value remains unchanged: " << uc.Eval("LOCKED_VAL") << endl; }