Talk About Network

Google





Programming > C - C++ Learning > ostream_iterato...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4122 of 4400
Post > Topic >>

ostream_iterator

by "HenkZ" <hzeldenrust@[EMAIL PROTECTED] > Apr 20, 2008 at 07:59 PM

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?
 




 3 Posts in Topic:
ostream_iterator
"HenkZ" <hze  2008-04-20 19:59:31 
Re: ostream_iterator
"sk_usenet" <  2008-04-20 11:50:47 
Re: ostream_iterator
"HenkZ" <hze  2008-04-20 22:56:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 11:31:51 PST 2009.