调试时的部分代码如下:
char *buf;int main(){ FILE* f; if (f = fopen("D:\\BookIdx.txt", "r")) { while (!feof(f)) GetLine(f); } fclose(f);}void GetLine(FILE* f) { fgets(buf, 50, f);}