<?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[Integer Wert zuweisen?]]></title><description><![CDATA[<p>Ich habe mal irgendwo gesehen, dass man einer reihe von<br />
Integern einen Wert in geschweiften Klammern geben kann.<br />
Wie geht das richtig?</p>
<p>int a,b,c,d{...}; //???</p>
<p>Oder war das nur für Arrays? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/127754/integer-wert-zuweisen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 05:14:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/127754.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Nov 2005 10:44:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Integer Wert zuweisen? on Sun, 27 Nov 2005 10:44:56 GMT]]></title><description><![CDATA[<p>Ich habe mal irgendwo gesehen, dass man einer reihe von<br />
Integern einen Wert in geschweiften Klammern geben kann.<br />
Wie geht das richtig?</p>
<p>int a,b,c,d{...}; //???</p>
<p>Oder war das nur für Arrays? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/928178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/928178</guid><dc:creator><![CDATA[Headg]]></dc:creator><pubDate>Sun, 27 Nov 2005 10:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to Integer Wert zuweisen? on Sun, 27 Nov 2005 10:53:36 GMT]]></title><description><![CDATA[<p>ja ganz klar arrays...</p>
<p>syntax<br />
[cpp]<br />
Datentyp Arrayname[Anzahl der Elemente (Zeilen)]={Initialisierung};<br />
// Bei einem 2-dimensionalen array muss zus. noch die anz. der spalten angegeben<br />
// werden, also...<br />
................................................[Anzahl d. Spalten].......</p>
<p>z.B.:</p>
<p>const int i Anzahl=5;<br />
int iArrZahlen[i Anzahl]={0,0,0,0,0} // Index von 0 bis 4<br />
={1} // erstes auf 1 -&gt; Rest auf 0 initialisiert<br />
iArrZahlen[0]=3<br />
^<br />
Platznummer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/928185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/928185</guid><dc:creator><![CDATA[XaTrIxX]]></dc:creator><pubDate>Sun, 27 Nov 2005 10:53:36 GMT</pubDate></item></channel></rss>