|
|
|
|
|
|
inFile >> skipws >> cand; processes the 'A', leaving ",4\nB,1..." in the inputinFile >> skipws >> prec fails, because comma is not allowed in an integer. Once it failed, inFile.fail() is true and no further reading from inFile is allowed.while(!inFile.eof()), which is an error to start with, but in this particular case it is never fulfilled because the input stream never reaches the end of file. |
|
|
|