From: Cameron McCormack Subject: Re: More out from "cout".... Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Followup-To: comp.lang.c++ References: <9pque5$eui$1 AT tron DOT sci DOT fi> <38315c2d DOT 0110080044 DOT 40ead28d AT posting DOT google DOT com> Lines: 18 User-Agent: KNode/0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Date: Mon, 08 Oct 2001 09:14:14 GMT NNTP-Posting-Host: 203.45.53.170 X-Complaints-To: news AT bigpond DOT net DOT au X-Trace: news-server.bigpond.net.au 1002532454 203.45.53.170 (Mon, 08 Oct 2001 19:14:14 EST) NNTP-Posting-Date: Mon, 08 Oct 2001 19:14:14 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jon Bills: > What's wrong with using a vector and for_each()? Or even an ostream_iterator? This should do what the Traveler wants without having to overload any operators: int someArray[] = {4, 54, 12, 9, 234, 89, 5}; const int N = sizeof(someArray) / sizeof(int); copy(someArray, someArray + N, ostream_iterator(cout, "\n")); Cameron -- Cameron McCormack // clm AT yoyo DOT cc DOT monash DOT edu DOT au // http://yoyo.cc.monash.edu.au/~clm/ // icq 26955922