Discussion:
Unexpected Input
(too old to reply)
Greg Sinclair
2004-01-17 18:10:17 UTC
Permalink
For all labs, the example input only shows expected input. But what if the
user does something strange, like enters a string when we are expecting a
char, or does not answer a question properly?

Should we use exit(n), proceed, program error handling, or what?

-Greg
Alexander Smith
2004-01-23 15:13:39 UTC
Permalink
See my message titled "Re: Input from automarking" posted on Jan 21. It
details what you can assume about the input for this lab. If there is an
assumption not listed there, then you should treat it as an error. There
isn't much error checking to do for this lab. There will be more for lab 2.

Alexander
Post by Greg Sinclair
For all labs, the example input only shows expected input. But what if the
user does something strange, like enters a string when we are expecting a
char, or does not answer a question properly?
Should we use exit(n), proceed, program error handling, or what?
-Greg
Loading...