会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wconvey
博客园
首页
新随笔
联系
管理
订阅
08 2012 档案
C语言如何从文件中读取数据
摘要:FILE *fp=fopen("data1.txt","r"); if(!fp) { printf("can't open file\n"); return -1; } while(!feof(fp)) { fscanf(fp,"%d %d %d",&x,&y,&z); } FILE *fp1=fopen("data2.txt","w+"); fprintf(fp1,"%d %d\n",x,y); #include<s
阅读全文
posted @
2012-08-22 23:11
wconvey
阅读(1665)
评论(0)
推荐(0)
公告