Mail Archives: djgpp/1999/09/27/16:56:39
Date: | Mon, 27 Sep 1999 16:02:51 -0400
|
Message-ID: | <vines.y929+fpwvrA@ptltest1.phoenix.com>
|
X-Priority: | 3 (Normal)
|
To: | <djgpp AT delorie DOT com>
|
From: | <ms AT delorie DOT com>
|
Subject: | Undeliverable Message
|
X-Incognito-SN: | 258
|
X-Incognito-Version: | 5.0.1.93
|
MIME-Version: | 1.0
|
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id QAA23730
|
Reply-To: | djgpp AT delorie DOT com
|
To: SMTP AT PTLTEST1@Servers[<djgpp AT delorie DOT com>]
Cc:
Subject: Re: problem with new malloc.c attn: Michael Bukin & Eli Zaretsk
Message not delivered to recipients below. Press F1 for help with VNM
error codes.
VNM3045: johnny_chan AT phoenix DOT com
Unable to find error information for this error.
---------------------- Original Message Follows ----------------------
SUBJECT too long. Original SUBJECT is
Re: problem with new malloc.c attn: Michael Bukin & Eli Zaretskii
---------------------- Original Message Follows ----------------------
When I try adding the line
zvector &operatorto my definition of class zvector I get error messages which I am unable
to use due to lack of knowledge.
Rather than dealing with the intracacies of overloading the
assignment operator, I can overload the operator < and use it as an
assignment operator. I add the overload
void operator<(zvector w8,zvector w9)
{int zi;
for (zingth+1;zi++)
{w8.s[zi+1] }
just below the overload of operator+ and then write
g<e+f; //instead of gï;
and
g<f+e; //instead of gþ;
and that all goes fine SO LONG AS I delete the destructor ~zvector
in the definition of class zvector and also the definition of ~zvector.
In other words, everything is as before.
I know that it is a ridiculous request, but I would like to know
how to overload operatorproblem. I understand that my code contains some error which, as
both of you have pointed out, arises from the properties of free.
Please write out the correct code for me--it is only a few lines.
The overloading of operatorthat.
- Raw text -