新手刚开始用Linux和c++写程序,可能会出现下面的错误
error: ‘exit’ was not declared in this scope
解决方法是
添加
#include <cstdlib>
新手刚开始用Linux和c++写程序,可能会出现下面的错误
error: ‘exit’ was not declared in this scope
解决方法是
添加
#include <cstdlib>
转载于:https://www.cnblogs.com/xisheng/p/7822579.html