+ 3

how to take these input sequentially by one variable...??? or how to check the given data integer or string.????

18 VODKA COKE 19 17

23rd Nov 2017, 3:39 AM
Sabbir Hossain
Sabbir Hossain - avatar
4 odpowiedzi
+ 5
You will have to read everything as a string, first of all. Then you may check your data's type like I have done in this code: https://code.sololearn.com/cnxi7DID8NnK/?ref=app And only after determination you may store it in the normal int, or char* variables... Just delete the cases which you do not need in the program itself...
23rd Nov 2017, 4:02 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 3
Who is disliking my answers? Please tell me the reason atleast. Are my answers incorrect? Not helpful?
23rd Nov 2017, 5:10 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 1
user give me these 5 input..i have to compare : integer value with an integer and string value with a string...how i do this.. input: 18 VODKA COKE 19 17
23rd Nov 2017, 3:48 AM
Sabbir Hossain
Sabbir Hossain - avatar
0
hi
25th Nov 2017, 3:34 PM
daviti