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);
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); //输出文件内容
}

Binary file not shown.
Loading…
Cancel
Save