閱讀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