Posted by Chris Knestrick on November 01, 2001 at 18:22:54:
In Reply to: Project posted by AMS on November 01, 2001 at 17:05:06:
It sounds like your first loop (to read in the initial array values) has caused an input failure. This doesn't necessairly mean that you're reaching the end of the file - it also occurs when attempting to read a value into a variable of an incompatible type. Remember, the first loop is NOT an input failure loop, so the design should not be the same as that described on slide 24 of chapter 4 (the standard input failure loop). The spec describes the types of loops that are required - make sure that you are using the correct types for each phase of input.
Post a Followup