<?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[Automatische Null-Zuweisung von Statischen Integralen]]></title><description><![CDATA[<p>Hi!,</p>
<p>garantiert der Standard automatische Null-Zuweisung eines Statischen Integrals?</p>
<pre><code class="language-cpp">static unsigned a;//a = 0
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/296681/automatische-null-zuweisung-von-statischen-integralen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 19:32:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/296681.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Dec 2011 19:57:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 19:57:51 GMT]]></title><description><![CDATA[<p>Hi!,</p>
<p>garantiert der Standard automatische Null-Zuweisung eines Statischen Integrals?</p>
<pre><code class="language-cpp">static unsigned a;//a = 0
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2155165</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155165</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 09 Dec 2011 19:57:51 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 20:09:54 GMT]]></title><description><![CDATA[<p>Ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155166</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155166</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 09 Dec 2011 20:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 20:12:55 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ja.</p>
</blockquote>
<p>THX :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155167</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 09 Dec 2011 20:12:55 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 21:13:38 GMT]]></title><description><![CDATA[<p>Allerdings schadet es auch nicht, das explizit hinzuschreiben, besonders wenn man sich diesen Umstand zunutze macht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155184</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Fri, 09 Dec 2011 21:13:38 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 21:23:52 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>Allerdings schadet es auch nicht, das explizit hinzuschreiben, besonders wenn man sich diesen Umstand zunutze macht.</p>
</blockquote>
<p>Wie meinste das? Meinst du, den Umstand eine statische Variable zu erzeugen? :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155189</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 09 Dec 2011 21:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 21:29:33 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Wie meinste das? Meinst du, den Umstand eine statische Variable zu erzeugen? :xmas1:</p>
</blockquote>
<p>Den Umstand, dass die Variable automatisch initialisiert wird. Wenn dein Code sonst nicht funktionieren würde, schreib es ruhig hin, das tut niemandem weh und macht es lesbarer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155193</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Fri, 09 Dec 2011 21:29:33 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 21:58:55 GMT]]></title><description><![CDATA[<p>Was haben Integrale damit zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155202</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Fri, 09 Dec 2011 21:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 22:02:38 GMT]]></title><description><![CDATA[<p>Michael E. schrieb:</p>
<blockquote>
<p>Was haben Integrale damit zu tun?</p>
</blockquote>
<p>Er meint Variablen mit integralem Typ. int, long - sowas.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155204</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 09 Dec 2011 22:02:38 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 22:08:28 GMT]]></title><description><![CDATA[<p>@Hacker:<br />
Der Standard garantiert das übrigens auch für float/double und Zeiger. Also im Prinzip für alles was keine userdefinierten Typen sind.</p>
<p>Für die Member von &quot;aggregate structs&quot; gilt das wenn ich mich recht erinnere auch. Vermutlich zwecks besserer kompatibilität zu C.</p>
<p>Und natürlich für Arrays aus solchen Dingen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155207</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155207</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 09 Dec 2011 22:08:28 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 22:16:42 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p>@Hacker:<br />
Der Standard garantiert das übrigens auch für float/double.</p>
</blockquote>
<p>Integral bezieht sich IMO auch auf float, double, int, short, char, bool etc.</p>
<p>Edit: Verdammt. Es ist nur so, dass JW in seinem Buch ein paar mal das Wort genommen hat, und da ich mich fachgerecht ausdrücken möchte ... :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155208</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 09 Dec 2011 22:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 22:17:10 GMT]]></title><description><![CDATA[<p>Ne, float/double sind eben gerade nicht integral, hihi.<br />
numeric types != integral types</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155210</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155210</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 09 Dec 2011 22:17:10 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 22:21:31 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p>Ne, float/double sind eben gerade nicht integral, hihi.<br />
numeric types != integral types</p>
</blockquote>
<p>Na, einem Guru werd ich nich widersprechen. Sind integrale Typen solche, die nur natürliche Zahlen abspeichern können?</p>
<p>Und (soll ich dafür nen neuen Thread öffnen?): Kennt jemand eine Gute &quot;Doku&quot; zu std::thread?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155212</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 09 Dec 2011 22:21:31 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 22:43:58 GMT]]></title><description><![CDATA[<p>Gelöscht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155215</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Fri, 09 Dec 2011 22:43:58 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Fri, 09 Dec 2011 23:15:33 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Sind integrale Typen solche, die nur natürliche Zahlen abspeichern können?</p>
</blockquote>
<p>Naja, wenn man davon ausgeht dass du ganze Zahlen meinst (&quot;integers&quot; eben), und nicht natürliche, dann ja. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p><a href="http://en.wikipedia.org/wiki/Integer_(computer_science)" rel="nofollow">http://en.wikipedia.org/wiki/Integer_(computer_science)</a> schrieb:</p>
<blockquote>
<p>In computer science, an integer is a datum of integral data type, ...</p>
</blockquote>
<p>Bzw.</p>
<p>N3290 §3.9.1 - 7 schrieb:</p>
<blockquote>
<p>Types bool, char, char16_t, char32_t, wchar_t, and the signed and unsigned integer types are collectively called integral types. A synonym for integral type is integer type.</p>
</blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Und (soll ich dafür nen neuen Thread öffnen?): Kennt jemand eine Gute &quot;Doku&quot; zu std::thread?</p>
</blockquote>
<p>Wenn du die Sichtbarkeit deiner Frage erhöhen willst, würde ich dir empfehlen einen eigenen Thread aufzumachen.</p>
<p>Gute Doku zu std::thread kenne ich keine. Du kannst aber die Boost-Doku verwenden, und ggf. im Standard nachgucken falls du vermutest dass etwas bei std::thread anders sein könnte als es bei boost::thread ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155222</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 09 Dec 2011 23:15:33 GMT</pubDate></item><item><title><![CDATA[Reply to Automatische Null-Zuweisung von Statischen Integralen on Sat, 10 Dec 2011 04:53:23 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Und (soll ich dafür nen neuen Thread öffnen?): Kennt jemand eine Gute &quot;Doku&quot; zu std::thread?</p>
</blockquote>
<p>Lern erstmal C++ mit einem ordentlichen Buch, junger Padawan.</p>
<p>Edit: [05:52:38] &lt;cooky451&gt; Und es heißt junger Padawan! Jung, nicht klein! xD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155259</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sat, 10 Dec 2011 04:53:23 GMT</pubDate></item></channel></rss>