程序中起的文件名就用那个扩展名即可

授人以渔,不授人以鱼。
2015-08-25 15:42
2015-08-25 16:03
2015-08-25 16:08
程序代码:#include <stdio.h>
#include <string.h>
#include <math.h>
void main()
{
FILE *fo;
char str[]="*quit yes";
fo=fopen("t.proc","w+");
if (!fo)
{
printf("can't open file t.proc");
}
fprintf(fo,"%s",str);
fclose(fo);
}
2015-08-25 16:22
2015-08-25 16:22
2015-08-25 16:27
2015-08-25 16:41
2015-08-25 22:47
2015-08-26 08:44
2015-08-26 10:16