Good day, I was writing a program in C++.I was validating to ensure that only integer is accepted.
that is for int a;
a can take the value of single digit or double digit numbers like (13/123213/2312321).
Is there any way to check,that FOR variable a,
ONLY digits are entered and
NO decimal(like 2.4 1.002) or characted has been inputed?