how would i be able to make sure the user inputs the correct data. for example, if i wanted a command in my code to be run (filename). how can i display a message if the user forgets to add the name of the file or the 'filename'. i hope this question makes sense, if it fails to do so, i will be more than happy to explain more. the instructions in my assignment read the following:
"If a command requires an argument and it is missing, the interpreter should tell the user that an argument is required and then output the prompt and wait for a command."
all i have at this point is a basic cout command that displays depending on what the user inputs. in other words, it doesnt check whether an argument is missing.
any help would be appreciated.