摘要: 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) 编辑