Veröffentlicht 29. Mai 200817 j Hi ich versuche gerade c++ dateien zu laufen zum kriegen, und hab folgenden Fehler: strings.h:44: error: ISO C++ forbids declaration of 'operator==' with no type strings.h:45: error: ISO C++ forbids declaration of 'operator==' with no type strings.h:46: error: ISO C++ forbids declaration of 'operator!=' with no type strings.h:47: error: ISO C++ forbids declaration of 'operator!=' with no type der ausgeschnittene code dazu sieht folgend aus: friend operator==(const stringc &x, const char *s); friend operator==(const stringc &x, const stringc &y); friend operator!=(const stringc &x, const char *s); friend operator!=(const stringc &x, const stringc &y); kann mir vielleicht jmd weiter helfen bitte?
29. Mai 200817 j Da fehlt einfach der Rückgabetyp (vermutlich bool). Das sagt auch die Fehlermeldung.
29. Mai 200817 j du meinst einfach "friend bool operator == const(const stringc &x, const char *s); schreiben?
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.