My program expects 3 numbers entered by the user. Currently if the user enters 4, or more numbers the program will still run, but the extra value will carry over later on. I would like to know if there is a standard way of clearing cin.
Is this what cin.get() is for, I couldn't find a satisfying explanation.
Thank you,
David