会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wconvey
博客园
首页
新随笔
联系
管理
订阅
2012年8月22日
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
阅读(1638)
评论(0)
推荐(0)
编辑
公告