[C + +] Let's say I have a string a="+32+4-6", how do I evaluate it equal to 30 and store it in an integer variable?

10/19/2018 4:00:23 AM

Infinity ♾️

7 Answers

New Answer




thanks Saurabh Tiwari and Sachin


write this code int a; a = 32+4-6; cout << a;


BlazeGamingUnltd The user will enter 32+4-6 as a string! (actually its a part of a problem, I understand it looks odd)



I also don't know


i dnt understand pls elp i wnt to code apps wt lesson shuld i go 4r is it c++ or java pls explain