在代码块中查找输出文件

Finding the Output file in CodeBlocks

本文关键字:输出 文件 查找 代码      更新时间:2023-10-16

我想知道CodeBlocks的输出位于何处(即调试器窗口中显示的任何信息(。 我还想将此输出文件导出为文本或xml或html文件。 有人可以建议如何执行此过程吗?

我猜你正在用 c++ 搜索freopen()函数。在这种情况下,您可以尝试freopen('example.txt','w',stdout(将输出写入example.txt文件中。

这可能有助于您 - http://www.cplusplus.com/reference/cstdio/freopen/