+ 3

string of math expression to solution đŸ„”

there is a way to convert string of math expression to solution in cpp? for example string math = "1+2*3": string math = "7": like we can do in python👇 https://code.sololearn.com/co67RCw4Q6qi/?ref=app

21st Sep 2020, 11:08 AM
Roni Berlin
Roni Berlin - avatar
1 Answer
+ 2
Well, you have to parse the string yourself because there's no function like eval() in C++
21st Sep 2020, 11:34 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar