如何从Code :: Blocks的输出窗口中删除与执行相关的文本 [英] How to remove execution related text from output window of Code::Blocks

查看:454
本文介绍了如何从Code :: Blocks的输出窗口中删除与执行相关的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Code :: Blocks在C中进行编程。当我编译程序并执行它时,输出窗口(即Windows命令提示符)显示一些与执行有关的文本,这些文本现在对我来说不再有用

I am using Code::Blocks for programming in C. When I compile my program and execute it, the output window (i.e.. Windows Command prompt) displays some execution related text, these texts are not of use to me right now and dont want them to appear(see text below).


Hello,World!

进程返回0(0x0 )执行时间:3.920 s

按任意键继续。

Hello, World!
Process returned 0 (0x0) execution time : 3.920 s
Press any key to continue.

我尝试更改代码中的设置::阻止,但找不到与输出窗口相关的任何设置,而且我也不想显示按任意键继续文本。这些文本仅在我通过Code :: Blocks运行该程序时显示,而在我直接运行该程序时不显示。

I tried to change the settings in Code::Blocks but couldn't find any settings related to the output window and also I dont want the text "Press any key to continue" to appear. These texts appear only if I run the program through Code::Blocks and doesn't appear if I directly run the program.

推荐答案

不幸的是,有些事情无法更改,这就是其中之一。一些IDE所使用的一些怪癖只会使程序员发疯,但这无济于事。它之所以存在,是有原因的:执行数据可用于确定程序是否正常运行(例如结束执行)。您可以在以后将执行时间作为目标时,将这些数据用作编码项目的主要重点之一。随着您编写越来越多的高级项目,它可能还有其他用途。

Unfortunately, some things just cannot be changed, and that is one of them. There are some quirks used by some IDE's that just drive programmers crazy, but it can't be helped. There is a reason why it's there: the execution data can be used to find out whether the program worked properly (e.g. ended execution). You can use this data later when targeting execution time as one of the main focuses in coding the project. There may be other uses for it as you code more and more advanced projects.

这篇关于如何从Code :: Blocks的输出窗口中删除与执行相关的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆