This piece of code I wrote for a program gets a number between the values specified (no greater than the number of options there are, and no less than 0). I used cin>> because getline() is not needed in this scenario, we want numbers not a string. But, what happens when we enter a string anyway? I'll tell you: The dam thing doesn't know what to do with it. So my question is:
Since we can't add a string argument to pervent the entering of a string (integers can't be strings) into the command line, what can we do to squeez this bug out of my program?