Article View: de.comp.lang.c++
Article #2100Re: How initialize static member arrays?
From: Karl-Heinz Krause
Date: Thu, 11 Apr 1996 17:46
Date: Thu, 11 Apr 1996 17:46
23 lines
906 bytes
906 bytes
Am 10. Apr. 1996 schrieb Bernhard Ruch (Bernhard.Ruch@studi.epfl.ch):
> How can I initialize an array that is a static member
> of a class?
> e.g.
> class A {
> private:
> static int stat_int[20];
> };
Kein Problem:
class A {
static int stat_int[20];
};
int A::stat_int[] = { 1, 2, 3, 4 };
Karl-Heinz Krause
Technical Details
Message-ID:
<4kjghq$pqa@news00.btx.dtag.de>Path:
arc1-ca.pugleaf.net!news00.btx.dtag.de!not-for-mailReferences:
<4kg90n$2c9@netlab.cs.rpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news00.btx.dtag.de!not-for-mail From: Krause@t-online.de (Karl-Heinz Krause) Newsgroups: de.comp.lang.c++ Subject: Re: How initialize static member arrays? Date: 11 Apr 1996 17:46:34 GMT Organization: Telekom Online Internet Gateway Message-ID: <4kjghq$pqa@news00.btx.dtag.de> References: <4kg90n$2c9@netlab.cs.rpi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Sender: 0913148778-0001@t-online.de (Karl-Heinz Krause) X-Newsreader: Forte Free Agent 1.0.82