#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uc.DefineConstant("MAX_USERS = 100"); uc.DefineConstant("API_VERSION = 'v2.1'"); uc.DefineConstant("ENABLE_LOGGING = true"); cout << "Configuration Settings:" << endl; cout << "Max Users: " << uc.Eval("MAX_USERS") << endl; cout << "API Version: " << uc.EvalStr("API_VERSION") << endl; cout << "Logging Enabled: " << uc.EvalStr("ENABLE_LOGGING") << endl; // Use in a conditional expression int currentUserCount = 99; if (uc.EvalStr(to_string(currentUserCount) + " < MAX_USERS") == "true") { cout << "System capacity is OK." << endl; } }