abort函数用来终止一个进程,他的返回值是错误代码,默认是3 abort 包含在头文件stdlib.h和process.h都有包含,一般都添加stdlib.h头文件。 原型:void abort(void); 用法 abort();