JonnyB
02-21-2006, 02:35 PM
I still can't get a simple way of validating letters. If the user of the program is meant to type a number a types a letter by accident, how do you get it to reaconised the error and loop the input? Without using catch or try statements. can it be done with a do, while loop?
eg
please input your mark: a //user makes the mistake
Error, please input a number
please input your mark: //program loops to the orginal request
eg
please input your mark: a //user makes the mistake
Error, please input a number
please input your mark: //program loops to the orginal request