Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ evaluate expression

#include "tinyexpr.h"
#include <stdio.h>

int main()
{
    double answer = te_interp("3*2+4*1+(4+9)*6", 0);
    printf("Answer is %f
", answer);
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #evaluate #expression
ADD COMMENT
Topic
Name
8+8 =