When writing console applications in C and C + +, there are a lot of times when a flashback is encountered, such as with vs2013 or other compiler tools, the following two types of processing are common:
1. In the main () function, write down system ("pause") before return;//means pause
2, non-debug operation, directly press CTRL+F5; if you press F5 debugging, there will be a flash of the situation, but the method does not apply to the generated EXE file; 3, add a task to the program, that is, define an inline function inline void Keep_window_open (char ch;cin>>ch;), and then add Keep_window_open () at the end of the Mian function; This method is the most effective and most commonly used, 4, other methods, such as setting breakpoints, single-step debugging and so on.
The above methods are for the console application flash back, the specific situation to be treated.
C and C + + write console programs when a flashback occurs