string of math expression to solution 🥵 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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