+ 5

[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?

19th Oct 2018, 4:00 AM
Abhishek Tandon
Abhishek Tandon - avatar
7 ответов
19th Oct 2018, 6:15 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 5
19th Oct 2018, 6:56 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 2
write this code int a; a = 32+4-6; cout << a;
28th Oct 2018, 9:57 AM
BlazeGamingUnltd
BlazeGamingUnltd - avatar
+ 2
BlazeGamingUnltd The user will enter 32+4-6 as a string! (actually its a part of a problem, I understand it looks odd)
28th Oct 2018, 10:06 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 2
oh..
28th Oct 2018, 10:07 AM
BlazeGamingUnltd
BlazeGamingUnltd - avatar
+ 1
I also don't know
4th Nov 2018, 8:35 AM
Ssebudde Abbey
Ssebudde Abbey - avatar
0
i dnt understand pls elp i wnt to code apps wt lesson shuld i go 4r is it c++ or java pls explain
21st Oct 2018, 1:43 PM
Tee Jay Max
Tee Jay Max - avatar