S
Scofield
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?
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?