first commit

master
1050367616@qq.com 6 years ago
parent c99eb5aebc
commit 995db7e9ed

@ -477,8 +477,8 @@ void scoring(int x)
fprintf(fp,"%d ",score1); fprintf(fp,"%d ",score1);
fputs("player2: ",fp); fputs("player2: ",fp);
fprintf(fp,"%d",score2); fprintf(fp,"%d",score2);
rewind(fp); rewind(fp); //将指针回到文件开头
fgets(read,30,fp); fgets(read,30,fp); //读取文件里的内容,即记分板
gotoxy(45,18); gotoxy(45,18);
printf("%s",read); printf("%s",read); //输出文件内容
} }

Binary file not shown.
Loading…
Cancel
Save