What i am trying to do is to set a value for a. the value should be a number (float).
but i need to make it so that if a char is entered, then the program will end, or say something like "this is incorrect. please try again".
this is a sample of my code. if u need more please ask.
now, if i put a number in there it'll carry on doing whatever it does. but if i put a letter in, i'd like it to stop. so what's the way of sayingCode:cout << "Please enter the value for a, the lower bound "; cin >> a;
"if a is not a flaot then.....