I decided to try and put some input validation in a loop that would add elements to a vector until the user inputted an EOF flag.
everything seems to work fine when i plug in numbers normally, but when i enter a bad input, (line 30 - 36), like a character the program seems to just pause like it's going to take another input, but doesn't seem to be going back into normal program flow, or even start looping infinitly like i thought it might if the input handling failed.
did i misunderstand one of the member functions or am i not resetting the stream buffer correctly?