Trying to check for integer

I'm writing a program in C++ that's supposed to test two different whole numbers, so I've assigned the numbers to int, the problem is I can't figure out how to test if the user enters a whole number or not. Help me out please?
Yes that is what I have been looking for, thank you Ben.
Topic archived. No new replies allowed.