return EXIT_SUCCESS

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 
    

猜你喜欢

转载自blog.csdn.net/m0_45388819/article/details/113574764