Note that when a file reaches its end, fscanf returns EOF, and not zero. ... 1 by == 0 at lines 43 and 47 then the program will enter an infinite loop.
確定! 回上一頁