Article View: de.comp.lang.c++
Article #1600Verwendung von char* in C++ (War: Q: gcc 2.7.1: Aufruf einer Konstruktormethode...)
From: Watson
Date: Thu, 22 Feb 1996 12:13
Date: Thu, 22 Feb 1996 12:13
25 lines
1339 bytes
1339 bytes
Nun noch etwas (nur zum Spass, sonst fuer nix :-):
class charPointer {
char *value;
public:
charPointer(char *aValue) {
value = aValue;
}
operator char*() {
return value;
}
charPointer& operator =(char* aValue) {
value = aValue;
return *this;
}
char& operator[](int i) {
return value[i];
}
};
Keine ueble Sache, was ;-)?
--
* Greetinx from Watson (sayegh@fokus.gmd.de)
http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
signal(SIGSEGV,SIG_IGN);
Technical Details
Message-ID:
<312C5E01.1435@fokus.gmd.de>Path:
arc1-ca.pugleaf.net!stern.fokus.gmd.de!newsReferences:
<3120B25C.2650@fokus.gmd.de> <31229576.0@news.uni-konstanz.de> <pu91i3yvzc.fsf@themroc.colibri.de> <BOP9B96C@wuschel.ibb.schwaben.com> <4gdb6p$i5j@news.BelWue.DE> <W7Q9BM6M@wuschel.ibb.schwaben.com> <4ggkbr$7vr@news.BelWue.DE>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stern.fokus.gmd.de!news From: Watson <sayegh@fokus.gmd.de> Newsgroups: de.comp.lang.c++ Subject: Verwendung von char* in C++ (War: Q: gcc 2.7.1: Aufruf einer Konstruktormethode...) Date: Thu, 22 Feb 1996 13:13:53 +0100 Organization: GMD FOKUS - Research Institute for Open Communication Systems Message-ID: <312C5E01.1435@fokus.gmd.de> References: <3120B25C.2650@fokus.gmd.de> <31229576.0@news.uni-konstanz.de> <pu91i3yvzc.fsf@themroc.colibri.de> <BOP9B96C@wuschel.ibb.schwaben.com> <4gdb6p$i5j@news.BelWue.DE> <W7Q9BM6M@wuschel.ibb.schwaben.com> <4ggkbr$7vr@news.BelWue.DE> NNTP-Posting-Host: pollux.fokus.gmd.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)