From: Nick Newsgroups: comp.os.msdos.djgpp Subject: Re: Can You help me about djgpp with c++ Date: Fri, 14 Sep 2001 04:23:16 -0400 Organization: MindSpring Enterprises Lines: 33 Message-ID: <3BA1BE73.ADC83A7F@yahoo.com> References: <003201c13a3f$053b2f40$aa7ba8c0 AT fuego> <5Bbn7.6249$9V5 DOT 360511 AT news000 DOT worldonline DOT dk> NNTP-Posting-Host: a5.f7.a1.b2 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------FF5BA8473951F700BAF8BA1D" X-Server-Date: 14 Sep 2001 20:25:16 GMT X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------FF5BA8473951F700BAF8BA1D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > > int test(samp o) Here's the problem. Class objects should always be passed as references. Change that line to: int test(samp &o) --------------FF5BA8473951F700BAF8BA1D Content-Type: text/x-vcard; charset=us-ascii; name="jp_prongs.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Nick Content-Disposition: attachment; filename="jp_prongs.vcf" begin:vcard x-mozilla-html:FALSE fn;quoted-printable:I set out To beg my food=3B But the time was spent Gathering violets In the fields of spring. -- Ryokan n;quoted-printable:;I set out To beg my food=3B But the time was spent Gathering violets In the fields of spring. -- Ryokan adr:;;;;;; version:2.1 end:vcard --------------FF5BA8473951F700BAF8BA1D--