#include <stdio.h>
void fun(char *fname,char *st)
{ FILE *myf;int i;
myf=fopen(fname,“w”);
for(i=0;i<strlen(st);i++)fputc(st[i],myf);
fclose(myf);
}
main()
{ fun(“test.t”,“new world”);fun(“test.t”,“hello,”);}
执行该程序后,文件test.t中的内容是_______。
为什么是hello???详细解答O(∩_∩)O~