如何将结果保存到c中的.in输出文件? [英] how to save a result to a .in output file in c?
本文介绍了如何将结果保存到c中的.in输出文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将操作内容保存到名为output.in的输出文件?
是不是?
#include < stdio.h >
#include < stdlib.h >
int main( void )
{
FILE *输出;
输出= fopen( output.in, a);
fprintf(输出, data);
fclose(输出);
return 0 ;
}
解决方案
http://blog.aditech.info/2008/03/saving-output-of-c-program-in-text.html [< a href =http://blog.aditech.info/2008/03/saving-output-of-c-program-in-text.htmltarget =_ blanktitle =New Window> ^
Hi,
how can i save contents of an operation to an output file which name is "output.in"?
is it right?
#include <stdio.h>
#include <stdlib.h>
int main ( void )
{
FILE * Output;
Output = fopen("output.in", "a");
fprintf(Output, "data");
fclose(Output);
return 0;
}
解决方案
http://blog.aditech.info/2008/03/saving-output-of-c-program-in-text.html[^]
这篇关于如何将结果保存到c中的.in输出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文