简体   繁体   English

在 CodeBlocks 中查找 Output 文件

[英]Finding the Output file in CodeBlocks

I wanted to know where the output of CodeBlocks is located (ie whatever information is shown in the Debugger Window.) And also i wanted to export this output file to a text or xml or an html file. I wanted to know where the output of CodeBlocks is located (ie whatever information is shown in the Debugger Window.) And also i wanted to export this output file to a text or xml or an html file. Can someone please suggest how this process should be carried out.有人可以建议如何执行此过程。

I guess you are searching freopen() function in c++.我猜你正在 c++ 中搜索freopen() function。 In that case you can try freopen('example.txt','w',stdout) to write your outputs in example.txt file.在这种情况下,您可以尝试freopen('example.txt','w',stdout)将输出写入 example.txt 文件。

This may help you- http://www.cplusplus.com/reference/cstdio/freopen/这可能会对您有所帮助-http://www.cplusplus.com/reference/cstdio/freopen/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM