diff --git a/Gobang.cpp b/Gobang.c similarity index 98% rename from Gobang.cpp rename to Gobang.c index 79d0bf3..046d646 100644 --- a/Gobang.cpp +++ b/Gobang.c @@ -477,8 +477,8 @@ void scoring(int x) fprintf(fp,"%d ",score1); fputs("player2: ",fp); fprintf(fp,"%d",score2); - rewind(fp); - fgets(read,30,fp); + rewind(fp); //将指针回到文件开头 + fgets(read,30,fp); //读取文件里的内容,即记分板 gotoxy(45,18); - printf("%s",read); + printf("%s",read); //输出文件内容 } diff --git a/Gobang.exe b/Gobang.exe index 37df5bd..5d534ed 100644 Binary files a/Gobang.exe and b/Gobang.exe differ