return EXIT_SUCCESS return EXIT_SUCCESS其本质就是return 0 EXIT_SUCCESS是C语言头文件库中定义的一个符号常量。 头文件stdlib.h中:#include <cstdlib> /* Definition of the argument values for the exit() function */ #define EXIT_SUCCESS 0 #define EXIT_FAILURE 1