<?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[Zweidimensionales Array]]></title><description><![CDATA[<p>Hey Leute,</p>
<p>ich habe nur eine kurze Frage und finde im Internet wiedersprüchliche Antworten dazu.</p>
<p>Wenn ich ein zweidimensionales Array Deklariere was kommt zuerst? Die Zeile oder die Spalte?<br />
z.b.:</p>
<p>int A[zeile][spalte]; oder; int A[spalte][zeile]; ?</p>
<p>Viele Grüße<br />
Criseas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/280133/zweidimensionales-array</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 06:59:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/280133.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Jan 2011 09:34:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 09:34:36 GMT]]></title><description><![CDATA[<p>Hey Leute,</p>
<p>ich habe nur eine kurze Frage und finde im Internet wiedersprüchliche Antworten dazu.</p>
<p>Wenn ich ein zweidimensionales Array Deklariere was kommt zuerst? Die Zeile oder die Spalte?<br />
z.b.:</p>
<p>int A[zeile][spalte]; oder; int A[spalte][zeile]; ?</p>
<p>Viele Grüße<br />
Criseas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004806</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004806</guid><dc:creator><![CDATA[Criseas]]></dc:creator><pubDate>Mon, 10 Jan 2011 09:34:36 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 09:35:52 GMT]]></title><description><![CDATA[<p>int A[zeile][spalte]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004808</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004808</guid><dc:creator><![CDATA[*Cassiopeia*]]></dc:creator><pubDate>Mon, 10 Jan 2011 09:35:52 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 09:40:55 GMT]]></title><description><![CDATA[<p>Was für einen Unterschied macht das? Was du Zeile oder Spalte nennst ist völlig willkürlich.</p>
<p>Das einzige was du wir merken solltest:<br />
1. Beim Iterieren die hintersten Indizes in der innersten Schleife<br />
2. 2D Arrays möglichst meiden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004811</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 10 Jan 2011 09:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 09:41:23 GMT]]></title><description><![CDATA[<p>Hallo Criseas,</p>
<p>Das ist eigentlich egal. Du musst nur das iterieren entsprechend machen.</p>
<p>Ich vermute mal die meisten Leute würden a[zeile][spalte] bevorzugen.</p>
<p>Etwas anderes ist es natürlich wenn Bibliotheksfunktionen ein Array verlangen, dann musst Du Dich natürlich an die Anforderungen der Bibliothek halten.</p>
<p>Herzliche Grüsse<br />
Walter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004813</guid><dc:creator><![CDATA[weicher]]></dc:creator><pubDate>Mon, 10 Jan 2011 09:41:23 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 09:47:13 GMT]]></title><description><![CDATA[<p>Okey vielen dank, das hilft mir schon weiter:)!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004821</guid><dc:creator><![CDATA[Criseas]]></dc:creator><pubDate>Mon, 10 Jan 2011 09:47:13 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 11:03:03 GMT]]></title><description><![CDATA[<p>Ein Blick auf <a href="http://www.boost.org/doc/libs/1_45_0/libs/multi_array/doc/index.html" rel="nofollow">Boost - Multiarray</a> wäre vielleicht nicht schlecht. Ich mag rohe multiarrays nicht ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004850</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Mon, 10 Jan 2011 11:03:03 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 11:10:44 GMT]]></title><description><![CDATA[<p>Ich finde boost multi_array etwas unkomfortabel, gerade bei 2D Arrays kann man durch Kapselung eines vektors und Implementation von ein paar Methoden schon mit wenig Aufwand was Brauchbares schaffen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004854</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Mon, 10 Jan 2011 11:10:44 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 12:05:32 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/18927">@DocShoe</a>: Klar, mit Vektoren geht das sehr gut, aber was findest du an boost::multi_array unkomfortabel?</p>
<pre><code class="language-cpp">#include &quot;boost/multi_array.hpp&quot;
using namespace boost;
int main()
{
 typedef multi_array&lt;int, 2&gt; TArray;
 typedef TArray::index Tindex;
 TArray array( extents[3][3] );
 array [1][2] = 42;
 return 0;
}
</code></pre>
<p>Gruß<br />
Dobi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004885</guid><dc:creator><![CDATA[Dobi]]></dc:creator><pubDate>Mon, 10 Jan 2011 12:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 12:20:35 GMT]]></title><description><![CDATA[<p>Schon allein 2 typedefs in 4 Zeilen Code. Gut, ginge auch ohne, aber dass der Konstruktor ein extents Objekt braucht, um zu wissen, wie groß das Arrays sein soll ist schon nicht mehr intuitiv.<br />
Wie gesagt, wenn ich ein 2D Array für triviale Datenhaltung brauche würde ich wirklich eine eigene Klasse schreiben, aber sobald ich sub-arrays oder stencil Funktionalität brauche würde ich auch boost multiarray benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004892</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Mon, 10 Jan 2011 12:20:35 GMT</pubDate></item><item><title><![CDATA[Reply to Zweidimensionales Array on Mon, 10 Jan 2011 13:36:26 GMT]]></title><description><![CDATA[<p>Ja ist etwas umständlich. Ich benutze dann aber trotzdem lieber eine externe lib, die ausreichend getestet wurde bevor ich selber sowas code. Aber ja, jedem das sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004914</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Mon, 10 Jan 2011 13:36:26 GMT</pubDate></item></channel></rss>