Neelesh Bodas дµÀ:
> On Aug 20, 2:23 pm, Scofield <zwyli...@163.com> wrote:
>> copy (coll.begin(), coll.end(), ostream_iterator<int>(cout, " "));
>>
>> when compile, it yields the following errors:
>> list1.cpp:12: error: 'ostream_iterator' was not declared in this scope
>> list1.cpp:12: error: expected primary-expression before 'int'
>>
>> I have included header file iostream and
>> using namespace std;
>>
>> will you please explain why? any solutions?
>
> #include<iterator>
>
> -N
>
oh, sorry, i made a silly mistake.