Is there any c/c++ function that is similar to eval() in php and javascript?
For those who don't know what I'm talking about:
eval() can evaluate a string as an expression:
in this case, the variable $test1 will be assigned a 5 value.PHP Code:
$no = 1;
eval("$test".$no." = 5");