Hey, I got a problem.
I am to write a program that takes 4 different commands and performs different actions for each individual command. The problem is that the commands are not of the same format.
Here is what the commands take.
command 1: char d, int, int.
command 2: char a, int.
command 3: char s.
command 4: char e.
Its all read in one line. I cant type 'd', hit enter and then prompt for 2 integers.
What is a smart solution?
I was thinking about reading it all in as a string, but then im not sure how to let the program know to look for an integer (integer could be 1 to 10000).
Any thoughts would be appreciated