error: ‘exit’ was not declared in this scope 的解决方法

来源:互联网 发布:虚拟机的网络模式 编辑:程序博客网 时间:2024/05/20 14:28

刚开始用linux和G++写程序,碰到的错误可谓是五花八门,如下面的错误
error: ‘exit’ was not declared in this scope
解决方法是
添加

#include <cstdlib>
阅读全文
0 0