Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent output screen from disappear in Visual Studio 2013 C++ Compiler

Tags:

People also ask

How do I make the output window stay in Visual Studio?

Start the project with Ctrl + F5 instead of just F5 . The console window will now stay open with the Press any key to continue . . . message after the program exits.

How do I keep the console open in Visual Studio?

Use Console. ReadLine() at the end of the program. This will keep the window open until you press the Enter key.

Where is the output window in Visual Studio?

The Output window displays status messages for various features in the integrated development environment (IDE). To open the Output window, on the menu bar, choose View > Output, or press Ctrl+Alt+O.


I just downloaded Visual Studio 2013. When I compile C, it doesn't show me my output. The output screen will show up for a brief second and then disappears.

#include <stdio.h>

int main()
{
    printf("hi");
    return 0;
}

"The program '[5688] Project1.exe' has exited with code 0 (0x0)." I know my code works and run correctly except I just can't make the output screen stay on without exiting after a second.