🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2390

Re: Trying to overload the << operator using C++

#2390
From: Aquila
Date: Wed, 09 Jun 2004 05:32
23 lines
1795 bytes
Jim wrote:

> bag container[bags_to_use];��//�A�declared�bag�of�arrays.
> 
> 
> 

you don't want to write an output operator for just this array right?

> ostream& operator <<(ostream& outs, const bag& container[bags_to_use])
> {
> 
> stuff I will write later.
> 
> }
> 
> but I think that I may be wrong?��Is�my�syntax�wrong?
> 
I don't think it's possible to have a variable array size in a definition...
if it does work: did you put this operator in your class? what errors do you
get?
-- 
"May the source be with you"
Technical Details
Message-ID: <bJ6dndafgsV4PVvdRVn-vg@scarlet.biz>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail
References: <2in1o6Fpl2ivU1@uni-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fcea4,a23b69b2c15cdca2
X-Google-Attributes: gidfcea4,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 09 Jun 2004 00:32:21 -0500
From: Aquila <braempje@netscape.net>
Subject: Re: Trying to overload the << operator using C++
Newsgroups: be.comp.programming
Date: Wed, 09 Jun 2004 07:32:21 +0200
References: <2in1o6Fpl2ivU1@uni-berlin.de>
User-Agent: KNode/0.7.7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
Message-ID: <bJ6dndafgsV4PVvdRVn-vg@scarlet.biz>
Lines: 23
NNTP-Posting-Host: 81.11.189.168
X-Trace: sv3-E0HpwiDRtKGK7o0nsDVRcRTbPpmot8ub2YscBTQqMn5Qv5noOc8IFljw4xwB6L8Qx1IHRiPk+W5bqvX!kHslWY6ZDEo+OTeVTvk1VWFM42D/5rF6/BuaB9JfslhS77NCSU5amGS8IDfCiQyUqfwUhYF5cS4=
X-Complaints-To: abuse@scarlet.be
X-DMCA-Complaints-To: abuse@scarlet.biz
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1