There are three ways:
1. Start debugging Don’t use this button:
directly Ctrl+F5 start. The effect is as follows:

2. Add the system (” pause “);
#include< stdio.h>
1. Start debugging Don’t use this button:


2. Add the system (” pause “);
#include< stdio.h>
the main () {
printf (” Hello, World! \n”);
system (” pause “);
}
The effect is as follows:
3. Add _getch ();
#include< stdio.h>
#include < conio.h>
the main () {
printf (” Hello, World! \n”);
_getch ();
}
The effect is as follows:
Read More:
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference
- Flashback problem of output window of visual studio 2017 console program
- Two lines of code to solve your vs flashback problem
- C + + uses system (“pause”) to pause black windows
- Some solutions to the problem of windows flashback after vs running
- The language of C__ FILE__ 、__ LINE__ And line
- Solution to the flash of visual studio console program output window
- VS2010 debugging window flash solution
- Solution to the problem of console flash in vs2017 runtime
- Error c2137 of C language: empty character constant (Fixed)
- C language — to solve the problem of program flashback when programming (in VS)
- There are three ways to deal with the problem of vs (Visual Studio) 2017 flashback. I feel that none of them is the fundamental solution.
- C error C2143 syntax error missing before ‘type’
- Solution of vs program flashback problem
- Explain stdin, stdout, stderr in C language
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Problem solving – vs debugging window flash solution
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Error in comparing the size function of STL with negative number
- Solution of command line window flashback when visual studio runs C + + program