Validation in C++
I want to do validation. I need to make sure that input is an integer. What is the function in C++ that determines that the given input is an integer. And if the input is not an integer then the cin>> statement remains there.
Plz guide me with a piece of code eg. lets say the user has to enter his age or marks obtained in a subject.
MAXOOD!
Life is an endless journey towards perfection
__________________
MAXOOD!
Life is an endless journey towards perfection
|