共用方式為


Program Termination

 

The latest version of this topic can be found at Program Termination.

In C++, there are several ways to exit a program:

  • Call the exit function.

  • Call the abort function.

  • Execute a return statement from main.

See Also

main: Program Startup