c++ evaluate expression code example
Example: c++ evaluate expression
#include "tinyexpr.h"
#include
int main()
{
double answer = te_interp("3*2+4*1+(4+9)*6", 0);
printf("Answer is %f\n", answer);
return 0;
}
#include "tinyexpr.h"
#include
int main()
{
double answer = te_interp("3*2+4*1+(4+9)*6", 0);
printf("Answer is %f\n", answer);
return 0;
}