I'm looking to perform input validation in a simple program I'm writing. I have an int to be input, and want to ensure that the user does input the correct type, otherwise my program runs infinite. What's the best way to handle this? It appears there is no isDigit() and atoi() functionality in C::B.