Mail Archives: djgpp/1997/09/14/14:59:19
How would you check a variable to make sure it's a certain data type you
want it to be? I have a small prog, that needs this. It prompts you
for an integer, but you can enter other types. If you enter other
types, if really screws up the prog. I'm using a scanf to get that
value for a variable, but after that, I want to check to make sure the
value in that variable is a integer. If it's not, it would prompt the
user again. How would I do that?
--
(~_Ionicis_~)
http://www.geocities.com/SiliconValley/Bay/2306/ <--- Go here!
- Raw text -