1、函数声明:int fprintf;2、format这是C字符串,包含了要被写入到流stream中的文本。它可以包含嵌入的format标签,format标签可被随后的附加参数中指定的值替换,并按需求进行格式化。
扩展资料
程序示例:
#include u003ccstdiou003e
int main(void)
FILE *in,*out;
in = fopen("\\AUTOEXEC.BAT", "rt");
if(in == NULL)
fprintf(in, "Can not open inputfile.\n");
return 1;
out = fopen("\\AUTOEXEC.BAT", "wt");
if(out == NULL)
fprintf(out, "Can not open outputfile.\n");
return 1;
©本文版权归作者所有,任何形式转载请联系我们:xiehuiyue@offercoming.com。