您的位置:首页 > 运维架构

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

2017-09-25 22:19 771 查看
刚开始用linux和G++写程序,碰到的错误可谓是五花八门,如下面的错误

error: ‘exit’ was not declared in this scope

解决方法是

添加

#include <cstdlib>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: