Visual Studio 2013 运行项目两次
当我在 Visual Studio 2013 中处理任何基本 C++ 项目时按下本地 Windows 调试器"按钮时,控制台打开并输出程序,但是当控制台关闭时,另一个控制台打开,UI 略有变化,程序再次输出.
When I press the "Local Windows Debugger" button when working on any basic C++ project in Visual Studio 2013, the console opens and the program outputs, but when the console closes, another console opens, the UI changes slightly and the program outputs again.
重现步骤:
创建一个新的 C++ 项目
Create a new C++ project
在新项目的Source Files"目录下,创建一个名为main.cpp"的文件
Inside the "Source Files" directory of the new project, create a file named "main.cpp"
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!";
cin.get();
}
保存代码并按下工具栏上的本地Windows调试器"按钮
Save the code and press the "Local windows debugger" button on the toolbar
控制台会打开,并等待您按下 Enter 键
A console opens, and waits until you press enter
第一个控制台关闭后,会打开一个新控制台,并且 UI 发生变化:
After the first console closes, a new one opens up, and the UI changes:
包含项目的 zip 文件夹的下载链接:Test Project.zip
Link to download a zip folder containing the project: Test Project.zip
推荐答案
我启用了 avast deepscreen.要禁用,请转到 avast 用户界面 -> 设置 -> 防病毒并取消选中启用 Deepscreen"框
I had avast deepscreen enabled. To disable, goto avast user interface -> Settings -> Antivirus and uncheck the box that says "Enable Deepscreen"
相关文章