<?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[static variable verwenden]]></title><description><![CDATA[<p>hi</p>
<p>ich habe z.b.</p>
<p>a.h<br />
a.cpp</p>
<p>in der a.cpp habe ich eine statische methode varible</p>
<pre><code class="language-cpp">static const Ctest *hallo = 0;
</code></pre>
<p>in der b.cpp kann ich ganz normal auf die methoden von a.cpp zugreifen aber auf mein hallo nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>dort will ich hallo einen wert zuweisen</p>
<p>wie mache ich dies?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121153/static-variable-verwenden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 14:44:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121153.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Sep 2005 12:09:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to static variable verwenden on Tue, 20 Sep 2005 12:09:14 GMT]]></title><description><![CDATA[<p>hi</p>
<p>ich habe z.b.</p>
<p>a.h<br />
a.cpp</p>
<p>in der a.cpp habe ich eine statische methode varible</p>
<pre><code class="language-cpp">static const Ctest *hallo = 0;
</code></pre>
<p>in der b.cpp kann ich ganz normal auf die methoden von a.cpp zugreifen aber auf mein hallo nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>dort will ich hallo einen wert zuweisen</p>
<p>wie mache ich dies?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876554</guid><dc:creator><![CDATA[doh!]]></dc:creator><pubDate>Tue, 20 Sep 2005 12:09:14 GMT</pubDate></item><item><title><![CDATA[Reply to static variable verwenden on Tue, 20 Sep 2005 12:15:32 GMT]]></title><description><![CDATA[<p>doh! schrieb:</p>
<blockquote>
<p>cpp habe ich eine statische methode varible</p>
<pre><code class="language-cpp">static const Ctest *hallo = 0;
</code></pre>
<p>dort will ich hallo einen wert zuweisen</p>
</blockquote>
<p>const vs. Wert zuweisen.</p>
<p>Du kannst (und musst) hallo in a.cpp außerhalb von Klassenmethoden initialisieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876563</guid><dc:creator><![CDATA[hehejo]]></dc:creator><pubDate>Tue, 20 Sep 2005 12:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to static variable verwenden on Tue, 20 Sep 2005 12:19:14 GMT]]></title><description><![CDATA[<p>ich hab ein ähnliches projekt da hat es einer auch so gemacht</p>
<p>ist ja keine variable sondern mehr ein zeiger</p>
<p>maybe deshalb?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876569</guid><dc:creator><![CDATA[doh!]]></dc:creator><pubDate>Tue, 20 Sep 2005 12:19:14 GMT</pubDate></item><item><title><![CDATA[Reply to static variable verwenden on Wed, 21 Sep 2005 07:51:06 GMT]]></title><description><![CDATA[<p>schreib mal in deine header-Datei noch die deklaration der static-Variable</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876814</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 21 Sep 2005 07:51:06 GMT</pubDate></item></channel></rss>