Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
122 views
in Technique[技术] by (71.8m points)

c++ - Visual Studio 2013 runs project twice

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.

Steps to reproduce:

  1. Create a new C++ project enter image description her

  2. Inside the "Source Files" directory of the new project, create a file named "main.cpp"

  3. Put a basic hello world program into the file:

    #include &ltiostream&gt

    using namespace std;

    int main() {
        cout &lt&lt "Hello world!";
        cin.get();
    }

  1. Save the code and press the "Local windows debugger" button on the toolbar

  2. A console opens, and waits until you press enter

enter image description here

After the first console closes, a new one opens up, and the UI changes: enter image description here

Edit: Link to download a zip folder containing the project: Test Project.zip

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had avast deepscreen enabled. To disable, goto avast user interface -> Settings -> Antivirus and uncheck the box that says "Enable Deepscreen"

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...