hello all,
i am new to c++ and just started learning about 1 week ago.
i wrote a (console) program that does simple math, it asks you to enter couple numbers and will output an average.
i want to know how to write and if statement where it will say "input should be a number" if the input is anythign else: letter, $sign or combination of letter and number.
i have been able to do it like this
cin<<value;
if ( value < 0 ) {
cout<<"value should be more than 0", cin>>value;
}
but i want to know how to do if if value is a letter or anything other than a number