error: ‘ostream_iterator’ was not declared in this scope

2018年2月4日21:46:53 发表评论 701 views

编译程序时出现如下错误error: ‘ostream_iterator’ was not declared in this scope

解决方法如下:在头文件中加入iterator这个头文件

#include<iterator>

错误解决


问题来自C++程序设计2008版,课程代码:4737,第一章的泛型算法应用于普通数组下的所有例题。

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: