delorie.com/archives/browse.cgi | search |
From: | Cameron McCormack <clm AT yoyo DOT cc DOT monash DOT edu DOT au> |
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 |
Message-ID: | <G7ew7.132499$bY5.659414@news-server.bigpond.net.au> |
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<int>(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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |