CodeBlock在执行prog时打开2个控制台窗口 [英] CodeBlock opens 2 console windows when executing a prog

查看:811
本文介绍了CodeBlock在执行prog时打开2个控制台窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了代码块,我将其用于C ++编程。

I have recently installed Code Blocks and I'm using it for C++ programming.

我写了一个基本的Hello World程序,当我运行程序时,2个控制台窗口打开而不是1.如果只有输出,然后第一个控制台关闭后显示输出,然后第二个窗口保持打开。我的主要问题是当我试图接受一些输入和执行一些更多的东西。第一个窗口的工作原理,到最后的prog,关闭,然后第二个窗口再次从头开始。

I have written a basic Hello World program and when i run the program, 2 console windows are opening instead of 1. If there's only output then the 1st console closes after showing the output and then the 2nd window stays open. My main problem is when I'm trying to take in some input and execute some more stuff. The 1st window works as it should, going to the end of the prog, closes and then the 2nd window again starts from the beginning.

我无法关闭第一个窗口,它有点刺激性的运行程序两次。我试图在网上搜索,但没有人似乎面临这个问题之前。

I'm not able to close the 1st window and it's kinda irritating running through the program twice. I tried searching on the net, but no one seems to have faced this issue before.

任何建议都是真实的。

推荐答案

运行Avast,请转到:

If you're running Avast, go to :


  • 设置 - >主动防护 - >文件系统防护[设置图标] - >排除。

  • 按[添加]

  • 并输入以下内容:* / folder / *其中folder是项目文件夹的名称)。

现在应该可以正常运行。

Should run fine now.

这篇关于CodeBlock在执行prog时打开2个控制台窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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