TRAVIS
Wednesday, 7 August 2013
evaluating a string in a condition
evaluating a string in a condition
How to work with a string to evaluate numbers coming into a condition?
string = "(t>=2 && t<5) || (t<1)";
int c = 0;
for(int t = 0; t < 10; t++){
if( {string} )
c++;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment