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