[cs615asa] [CS615] HW5 Handling Garbage Input Properly

Jan Schaumann jschauma at stevens.edu
Fri Apr 6 14:54:43 EDT 2018


Patrick C Murray <pmurray1 at stevens.edu> wrote:

> How should we handle the tokenization of malformed input such as the
> following line (3132224)?

Instead of trying to process fields number two or three, you can break
the input to have:

- first field
- something something
- next to last field
- last field

That way, you don't care whether the "something something" contains
e.g. spaces.

-Jan


More information about the cs615asa mailing list