<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Array in Klassendeklaration?]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>Weiss jemand von euch wie man in der Klassendeklaration einen Array deklarieren und gleich auch initialisieren kann?</p>
<pre><code>class StaticTest : public wxTimer
{
public:
	StaticTest();
	~StaticTest();
	static const int PLAYRATE[] = {1,2,3,4};
};
</code></pre>
<p>So geht es jedenfalls nicht. Gibt es eine andere Möglichkeit oder gibt es einen Grund wieso man dies nicht tun kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/158412/array-in-klassendeklaration</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 19:25:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/158412.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Sep 2006 08:24:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Array in Klassendeklaration? on Tue, 05 Sep 2006 08:24:43 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>Weiss jemand von euch wie man in der Klassendeklaration einen Array deklarieren und gleich auch initialisieren kann?</p>
<pre><code>class StaticTest : public wxTimer
{
public:
	StaticTest();
	~StaticTest();
	static const int PLAYRATE[] = {1,2,3,4};
};
</code></pre>
<p>So geht es jedenfalls nicht. Gibt es eine andere Möglichkeit oder gibt es einen Grund wieso man dies nicht tun kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1131299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1131299</guid><dc:creator><![CDATA[renderflash]]></dc:creator><pubDate>Tue, 05 Sep 2006 08:24:43 GMT</pubDate></item><item><title><![CDATA[Reply to Array in Klassendeklaration? on Tue, 05 Sep 2006 08:32:05 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das Initialisieren muß du in die Implementation verlagern</p>
<pre><code class="language-cpp">// Header
class StaticTest : public wxTimer
{
public:
    StaticTest();
    ~StaticTest();
    static const int PLAYRATE[4];
};

// Implementation
const int StaticTest::PLAYRATE[4] = {1,2,3,4};
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1131305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1131305</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 05 Sep 2006 08:32:05 GMT</pubDate></item></channel></rss>