题目内容
在C盘中有一个名为temp.txt的文件夹。 #include<stdio.h> #include<stdib.h> main() {int i,n; FILE *fp; if((fp=fopen("c:\\temp.txt","w+"))==NULL) {printf("can not set the temp file\n");exit(0);} for(i=1;i<=10;i--)fprintf(fp,"%3d",i); for(i=0;i<5;i++) {fseek(fp,i*6L,0); fscanf(fp,"%d",&n); printf("%3d",n); } fclose(fp); }
查看答案
搜索结果不匹配?点我反馈