+4

[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

+5

http://www.cplusplus.com/forum/beginner/32702/

+5

thanks Saurabh Tiwari and Sachin

+2

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

+2

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

+2

+1

I also don't know

0

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