Visual Studio 2013 runs project twice(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"
这篇关于Visual Studio 2013 运行项目两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 2013 运行项目两次


基础教程推荐
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 这个宏可以转换成函数吗? 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01