Re: Tutorial of sorts
Irv Mullins wrote:
> So we have assignment 1.1
> Write a *validate* function, to take input, return a number
> within a specified range, or print an error message and
> abort.
<me put hand up, meekishly>
ummm....
abort(). bad... bad bad.
<me watch user lose data>
allow user to re-enter improper data. good.
<me watch user retain data>
</me put hand up>
assignment 1.1A perhaps?
Write a validate function, to take an input from the
user or the command line, and return a number within
a specified range, or print an error message and
allow the user the ability to retype the improper input,
without having to have the user retype *all* of the
other inputs (such as only one parameter on the command
line being improper... just fix that one parameter)
|
Not Categorized, Please Help
|
|