博客园 :: :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

2015年1月18日

摘要: #include //蜘蛛纸牌存档文件,读取分数。int main(void){ FILE *rfile; int p[20]; rfile = fopen("d:\\spider.sav","rb+");//只能用rb+,不能用wb fseek(rfile,368,SEEK_SET);//36... 阅读全文
posted @ 2015-01-18 15:48 #include<stdio.h> 阅读(569) 评论(0) 推荐(0) 编辑

摘要: #include //蜘蛛纸牌存档文件,修改分数。 int main(void) { FILE *wfile; int n = 655320; wfile = fopen("d:\\spider.sav","rb+");//只能用rb+,不能用wb fseek(wfile,368,SEEK_SET);//368是170的十六进制,这个位置是要修改的内容所在的位置。 fwrite(... 阅读全文
posted @ 2015-01-18 14:00 #include<stdio.h> 阅读(777) 评论(0) 推荐(0) 编辑