error: ‘exit’ was not declared in this scope

linux 里面C++编程,使用了exit(1)函数出现如下错误:

      error: ‘exit’ was not declared in this scope

解决:

       头文件添加:#include

你可能感兴趣的:(C/C++语言)