In my book there is an example with an
ostream_iterator like this:
(it should bring a[] on the screen)
--------
#include <iostream>
#include <algorithm>
//#include <ostream> didn't help
using namespace std;
int main(){
int a[] = {22, 33, 44, 55, 66, 77, 88, 99};
copy(a, a+6, ostream_iterator<int>(cout, " "));
return 0;
}
--------
The compiler says: ostream_iterator is not declared
Do i miss something in the include-rules?


|