How validate input numbers in c++
Example:
int a;
printf("Number: ");
scanf("%i", &a);
if (a is number) {
}printf("a is number);
else{
printf("a is not a number);
}
in the sentence if ( ????? ) what to put ?
Thanks!!
|
Results 1 to 7 of 7
Thread: Validate input numbers in C++Threaded View
|
Click Here to Expand Forum to Full Width |