Tuesday, 6 August 2013

How to convert a string into conditional expression in C++ or C

How to convert a string into conditional expression in C++ or C

I have a string "string expression=((true AND true)OR false);" , how do i
convert this string into a conditional statement so that i can use this in
if statement i,e if((true AND true)OR false)) . Like "eval" in javaScript
is there any API in C++ or C??

No comments:

Post a Comment