#include
int main()
{
FILE *fp;
int i,k=0,n=0;
fp=fopen("temp.dat","w");
for(i=3;i<5;i++)
fprintf(fp,"%d",i);
fclose(fp);
fp=fopen("temp.dat","r");
fscanf(fp,"%d%d\n",&k,&n);
printf("%d,%d\n",k,n);
fclose(fp);
return 0;
}
/*
1.程序运行结果:
34,0
*/
====求教程序结果不是应该为3,4吗?怎么是34,0呢?