Continuous input commands
问题 My program will read user keyboard commands in the form of " command parameter " with a space in between. It keeps carrying out individual commands until the next command is " exit ". Also, if the user messes up, the program should show an error but continue asking for commands (a feature I don't think I have completed).. Is the following code a good way of implementing this? Could it handle the user simply pressing the enter key w/o a command, junk input, etc? If anything, I would love to