[求助]为什么记事本中没数据?
#include<stdio.h>
int a,b,c;
main()
{
a=1;
b=2;
c=a+b;
write();
printf("%d\n",c);
}
write()
{
FILE *fp;
fp=fopen("22.c","w");
fprintf(fp,"%d",c);
fclose(fp);
}
----------------解决方案--------------------------------------------------------