阅读974 返回首页    go 阿里云 go 技术社区[云栖]


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

刚开始用linux和G++写程序,碰到的错误可谓是五花八门,如下面的错误

error: ‘exit’ was not declared in this scope

解决方法是

添加

#include <cstdlib>

分享到: 

最后更新:2017-04-02 00:06:49

  上一篇:go Android开发8——利用pull解析器读写XML文件
  下一篇:go JSP基础3