Strings and If/else loops C++?

i want the user to input an integer, but if by chance they input a string i want to throw up an error message saying the value was invalid blah blah try again and what not, but i do not know what kind of expression to use in the if/else statement or if i have to do somethign with parse etc. I am still learning to... show more i want the user to input an integer, but if by chance they input a string i want to throw up an error message saying the value was invalid blah blah try again and what not, but i do not know what kind of expression to use in the if/else statement or if i have to do somethign with parse etc. I am still learning to program, so any help or information you provide is greatly appreciated. Thank you
2 answers 2