error: ‘exit’ was not declared in this scope 的解决方法 刚开始用linux和G++写程序,碰到的错误可谓是五花八门,如下面的错误 error: ‘exit’ was not declared in this scope 解决方法是 添加#include <cstdlib> c++ 2023-10-17 183 点赞 2 评论 277 浏览