#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uc.DefineFunction("MyRound(x)", uc.ItemOf("Floor").FunctionAddress()); cout << uc.Eval("MyRound(2.5)") << endl; uc.ItemOf("MyRound").SetFunctionAddress(uc.ItemOf("Ceil").FunctionAddress()); cout << uc.Eval("MyRound(2.5)") << endl; }