+ 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 ответ
+ 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