<?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[Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp?]]></title><description><![CDATA[<p>Hallo,<br />
ich frage mich wofür das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp steht. Bsp. int a[2] oder int b[10]. Ich bin auf Zufall darauf gekommen als ich aus versehen den Index falsch gesetzt habe, da der Compiler keinen Fehler angezeigt hat wollte ich fragen wofür das steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/319746/wofür-steht-das-zahl-neben-datentyp</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 23:15:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/319746.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Sep 2013 08:53:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 08:53:18 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich frage mich wofür das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp steht. Bsp. int a[2] oder int b[10]. Ich bin auf Zufall darauf gekommen als ich aus versehen den Index falsch gesetzt habe, da der Compiler keinen Fehler angezeigt hat wollte ich fragen wofür das steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349611</guid><dc:creator><![CDATA[Anfänger53]]></dc:creator><pubDate>Sun, 01 Sep 2013 08:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 08:57:50 GMT]]></title><description><![CDATA[<p>Das kennzeichnet Arrays, du legst damit bspw. 2 bzw. 10 int-Variablen an.<br />
<a href="http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c" rel="nofollow">http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c</a></p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349612</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 01 Sep 2013 08:57:50 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 09:01:08 GMT]]></title><description><![CDATA[<p>SideWinder schrieb:</p>
<blockquote>
<p>Das kennzeichnet Arrays, du legst damit bspw. 2 bzw. 10 int-Variablen an.<br />
<a href="http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c" rel="nofollow">http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c</a></p>
<p>MfG SideWinder</p>
</blockquote>
<p>Sprich, int a, b, c , d, e = int a[5].</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349614</guid><dc:creator><![CDATA[Anfänger53]]></dc:creator><pubDate>Sun, 01 Sep 2013 09:01:08 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Tue, 03 Sep 2013 06:29:52 GMT]]></title><description><![CDATA[<p>So könnte man es auch sagen, ja. Wenn du aber nun bspw. 100 int benötigst, wäre es sehr umständlich diese alle einzeln anzulegen. Außerdem ist mir Arrays folgendes möglich:</p>
<pre><code class="language-cpp">// ohne arrays:
int a = 1;
int b = 2;
int c = 3;
...
int z = 26; // ui das sind viele zeilen

cout &lt;&lt; a &lt;&lt; &quot; &quot; &lt;&lt; b &lt;&lt; &quot; &quot; &lt;&lt; ... &lt;&lt; &quot; &quot; &lt;&lt; z; // ui das ist lang und hässlich

// mit arrays:
int myarray [26]; // ui, sehr kurz, sehr fein

for(int i = 0; i &lt; 26; ++i)
    cout &lt;&lt; myarray[i] &lt;&lt; &quot; &quot;; // ui die schleife war auch sehr fein
</code></pre>
<p>Edit - kleine Info noch: In C und C++ kannst du bei &quot;int a[5]&quot; auf die 5 Variablen über die Indexes 0-4 zugreifen, sprich:</p>
<p>a[0] ... erster int<br />
a[4] ... letzter int<br />
a[5] ... *boom* Programm kaputt</p>
<p>MfG SideWinder</p>
<p>Edit: Fehler ausgebessert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349616</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Tue, 03 Sep 2013 06:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 09:18:49 GMT]]></title><description><![CDATA[<p>Anfänger53 schrieb:</p>
<blockquote>
<p>Sprich, int a, b, c , d, e = int a[5].</p>
</blockquote>
<p>Das und noch ein bisschen mehr.<br />
Man kann nämlich auch dynamisch auf Elemente zugreifen:</p>
<pre><code>int a;
int b[5];
// hier a verändern
b[a] = 2;
</code></pre>
<p>Zudem wird garantiert, dass alle Elemente hintereinander als Block im Speicher liegen.</p>
<p>Allerdings frage ich mich, wieso du das nicht weißt, schließlich kommen Arrays doch in jedem Buch bzw. Tutorial vor und bevor man nicht mal die absoluten Grundlagen beherrscht, treibt man sich doch nicht im Forum herum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349618</guid><dc:creator><![CDATA[Marthog]]></dc:creator><pubDate>Sun, 01 Sep 2013 09:18:49 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 09:19:02 GMT]]></title><description><![CDATA[<blockquote>
<p>und bevor man nicht mal die absoluten grundlagen beherrscht, treibt man sich doch nicht im Forum herum.</p>
</blockquote>
<p>Says who? The internet police?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349619</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 01 Sep 2013 09:19:02 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 09:32:03 GMT]]></title><description><![CDATA[<p>SideWinder schrieb:</p>
<blockquote>
<p>Says who? The internet police?</p>
</blockquote>
<p>Wir sind nich hier, um Anfängern Fragen zu beantworten, die sie genausogut auch selbst hätten herausfinden können. Erst informiert man sich selber und wenn man dann noch Probleme hat, fragt man nach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349622</guid><dc:creator><![CDATA[Marthog]]></dc:creator><pubDate>Sun, 01 Sep 2013 09:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Sun, 01 Sep 2013 09:47:32 GMT]]></title><description><![CDATA[<p>Wenn jemand nett fragt bin ich aber trotzdem bereit ihm zu helfen. Ich bin lange genug hier um zu wissen ob &quot;wir&quot; dafür hier sind oder nicht. Aber das wird OT, lassen wir's bleiben.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349625</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 01 Sep 2013 09:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Mon, 02 Sep 2013 10:17:09 GMT]]></title><description><![CDATA[<p>SideWinder schrieb:</p>
<blockquote>
<pre><code class="language-cpp">for(int i = 0; i &lt; 26; ++i)
    cout &lt;&lt; i &lt;&lt; &quot; &quot;; // ui die schleife war auch sehr fein
</code></pre>
</blockquote>
<p>du hast etwas vergessen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349827</guid><dc:creator><![CDATA[doktor banane]]></dc:creator><pubDate>Mon, 02 Sep 2013 10:17:09 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Tue, 03 Sep 2013 05:08:50 GMT]]></title><description><![CDATA[<p>Bei bedarf kommt da halt noch ein</p>
<pre><code>std::cout &lt;&lt; '\n';
</code></pre>
<p>hinter <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349973</guid><dc:creator><![CDATA[Cyres]]></dc:creator><pubDate>Tue, 03 Sep 2013 05:08:50 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Tue, 03 Sep 2013 06:00:22 GMT]]></title><description><![CDATA[<p>Cyres schrieb:</p>
<blockquote>
<p>Bei bedarf kommt da halt noch ein</p>
<pre><code>std::cout &lt;&lt; '\n';
</code></pre>
<p>hinter <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
</blockquote>
<p>Darum geht es nicht. Die Schleife gibt nicht die Array-Elemente aus, sondern zählt nur alle Zahlen bis 26 auf.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349976</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Tue, 03 Sep 2013 06:00:22 GMT</pubDate></item><item><title><![CDATA[Reply to Wofür steht das &lsqb;&lsqb;Zahl&rsqb;&rsqb; neben Datentyp? on Tue, 03 Sep 2013 06:33:41 GMT]]></title><description><![CDATA[<p>Jap, danke, fixed.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2349979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2349979</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Tue, 03 Sep 2013 06:33:41 GMT</pubDate></item></channel></rss>