[solution] visual studio will exit automatically after debugging the program

1. Set breakpoint
Second, the system (” pause “)
(1) in the return 0; stem ("pause"); .
② Not using turn 0; stem ("pause"); ;
note: in the ACM or leetcode upload code to join this sentence complains;
3. Select the console program when creating a new project
If an empty project is selected, there will be an automatic exit problem.
Change the project configuration properties
opens the project properties and changes the subsystem to the console. (essentially the same as solution 3)

Read More: