Home > Back-end >  C language problem
C language problem

Time:09-19

Why didn't the exit DOS command the window is shut, but continued to run under the

CodePudding user response:

Debugging, remove the if statement, is to determine the exit or if problems

CodePudding user response:

System is a child process, the child process eixt the main process of it doesn't matter with you, just the child themselves out of the end of the
Why can pause to stop? Because the child's happening (wait for user input), the main process in the wait for the end of the child process returns

CodePudding user response:

Don't directly exit system (0) dropped out,

CodePudding user response:

The exit (0) or exit (1)
  • Related