E
Eric Sosman
gurdz said:Hi, thanks for the response, and yes, I am looking for what you are
talking about. Can you please give me an example code to validate what
you mentioned above. I have been looking for exactly what you are
talking about, but no matter how I search Google or any other search
engine for that matter, I am unable to find the appropriate result. I
hope that you could please help me out.
Some of the tests will depend on how you are obtaining
the input. Are you reading it from a file, or from an
interactive source, or getting it from the command-line
arguments, or what?
Suggestion: Just ignore the issue of validation (for the
moment; this is temporary) and write the program as if all
inputs were always trustworthy. Show us what you've written,
and people will suggest how you could fit some validation into
that framework.