<?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[Konstante Variable (Array) initialisiert zu Klasse hinzufügen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Möchte folgende, fixe Variable zu meiner Klasse hinzufügen!<br />
Wie mach ich das? Ich möchte die einfache Initialisierung (also mit var={blablabla};) nämlich beibehalten!</p>
<pre><code>const static double digitCache[10][7]={
    {1,1,1,1,1,1,0},//0
    {0,1,1,0,0,0,0},//1
    {1,1,0,1,1,0,1},//2
    {1,1,1,1,0,0,1},//3
    {0,1,1,0,0,1,1},//4
    {1,0,1,1,0,1,1},//5
    {1,0,1,1,1,1,1},//6
    {1,1,1,0,0,0,0},//7
    {1,1,1,1,1,1,1},//8
    {1,1,1,1,0,1,1}//9
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/282716/konstante-variable-array-initialisiert-zu-klasse-hinzufügen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 00:34:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/282716.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Feb 2011 21:40:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Konstante Variable (Array) initialisiert zu Klasse hinzufügen on Thu, 24 Feb 2011 21:40:50 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Möchte folgende, fixe Variable zu meiner Klasse hinzufügen!<br />
Wie mach ich das? Ich möchte die einfache Initialisierung (also mit var={blablabla};) nämlich beibehalten!</p>
<pre><code>const static double digitCache[10][7]={
    {1,1,1,1,1,1,0},//0
    {0,1,1,0,0,0,0},//1
    {1,1,0,1,1,0,1},//2
    {1,1,1,1,0,0,1},//3
    {0,1,1,0,0,1,1},//4
    {1,0,1,1,0,1,1},//5
    {1,0,1,1,1,1,1},//6
    {1,1,1,0,0,0,0},//7
    {1,1,1,1,1,1,1},//8
    {1,1,1,1,0,1,1}//9
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2026140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2026140</guid><dc:creator><![CDATA[const static double]]></dc:creator><pubDate>Thu, 24 Feb 2011 21:40:50 GMT</pubDate></item><item><title><![CDATA[Reply to Konstante Variable (Array) initialisiert zu Klasse hinzufügen on Thu, 24 Feb 2011 22:02:41 GMT]]></title><description><![CDATA[<p>Innerhalb der Klasse schreibst du nur die Deklaration (ohne Initialisierung) hin, die Definition kommt dann mit vorgestelltem <code>MeineKlasse::</code> in eine .cpp-Datei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2026149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2026149</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 24 Feb 2011 22:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to Konstante Variable (Array) initialisiert zu Klasse hinzufügen on Thu, 24 Feb 2011 22:08:31 GMT]]></title><description><![CDATA[<p>danke, das problem war:<br />
in der *.h datei muss es so stehen: static double digitCache[10][7];<br />
und in der *.cpp datei so: double Control::digitCache[10][7]=...</p>
<p>heißt also, bei der definition muss das static weg!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2026152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2026152</guid><dc:creator><![CDATA[const static double]]></dc:creator><pubDate>Thu, 24 Feb 2011 22:08:31 GMT</pubDate></item></channel></rss>