閱讀212 返回首頁    go 阿裏雲 go 技術社區[雲棲]


error: ‘ostream_iterator’ was not declared in this scope

 編譯程序時出現如下錯誤error: ‘ostream_iterator’ was not declared in this scope

解決方法如下:在頭文件中加入iterator這個頭文件

#include<iterator>

錯誤解決

最後更新:2017-04-04 07:03:27

  上一篇:go POJ3306 素數篩法
  下一篇:go 【最近麵試遇到的一些問題】線程安全-單例模式[轉]