🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #1066

Re: statische Klassenkomponenten

#1066
From: Dirk Jansen
Date: Wed, 20 Dec 1995 13:13
27 lines
919 bytes
Hallo Thomas,

statische Variablen müssen zusätzlich zur Deklaration noch
explizit definiert werden.


****************** Beispiel:


class A
{
private:
   static char Konst[8]; // Deklaration
};


char A::Konst[8]; // Definition !!!


*******************


Danach kannst Du die Variable Konst in deinen Methoden
benutzen.

Tschuess
     Dirk
Technical Details
Message-ID: <4b9250$ivc@basfigw.basf-corp.com>
Path: arc1-ca.pugleaf.net!nntp.basf-corp.com!news
References: <1995Dec19.201232@alma.student.uni-kl.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.basf-corp.com!news
From: Dirk Jansen <Dirk.Jansen@KTE.X400.basf-ag.de>
Newsgroups: de.comp.lang.c++
Subject: Re: statische Klassenkomponenten
Date: 20 Dec 1995 13:13:04 GMT
Organization: BASF Corporation
Message-ID: <4b9250$ivc@basfigw.basf-corp.com>
References: <1995Dec19.201232@alma.student.uni-kl.de>
NNTP-Posting-Host: 130.26.248.144
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
To: tsimon@student.uni-kl.de