0

Data type error?

if I input a data including much number(int) and string (like ADD,SUB), and I don't know the order they do, so how can I declare they in different variables?

12th Nov 2016, 11:11 AM
Eric Lai
Eric Lai - avatar
2 Answers
+ 1
Can you explain better your doubt? That is not clear to me. =\
12th Nov 2016, 11:43 AM
Adriano Armani
Adriano Armani - avatar
0
if input is (ADD 1 SUB 2 MUL 2 3) the code need a something to store what I input, declare a int or char X like " int x; cin>>x" to store ADD, but my question is I don't know the data I input order, how can I declare using right data type?
12th Nov 2016, 2:24 PM
Eric Lai
Eric Lai - avatar