Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

operator

0 views
Skip to first unread message

Christian Schmidt

unread,
Jul 15, 1998, 3:00:00 AM7/15/98
to
Helau,

für ein Prog. will ich operatoren überladen.
das mache ich mit:

typedef struct {
...
} *irgendein_Typ;

/* Prototyp */
irgendein_Typ operator +(irgendein_Typ, irgendein_Typ);


Beim Compilieren bekomme ich aber eine "Syntax Deklaration Error"-Meldung.
Wo liegt der Fehler ?? (Ich arbeite mit BTC++ 1.0)

VDiV
Chris Chaos

Carsten Tumma

unread,
Jul 17, 1998, 3:00:00 AM7/17/98
to
Hai Christian,

CS> Wo liegt der Fehler??

In C kann man keine Operatoren überladen.


Bye Byte,
Carsten
----------
Please send mails >60KByte/day to ctu...@earthling.net

Marcus Ohlhaut

unread,
Jul 24, 1998, 3:00:00 AM7/24/98
to
>In C kann man keine Operatoren überladen.

Und in C++ fehlen zwei :.

Hope it helps,
- Marcus [PGP]

0 new messages