The End-of-file (EOF) check may not be enough

The fragment is taken from SETI@home project. The error is detected by the following diagnostic: V663 Infinite loop is possible. The ‘cin.eof()’ condition is insufficient to break from the loop. Consider adding the ‘cin.fail()’ function call to the conditional expression.

Continue reading