I'm working on a C++ project and in a menu I want the user to choose 1, 2, 3 etc... integer number.
If they input a float i.e. 1.2
I want the code to tell them they've entered something invalid, rather than just rounding it down to 1.
how do I do this?