<?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[mehrdimensionales array]]></title><description><![CDATA[<p>hi leute,</p>
<p>ich zweifele stark an mir. passt mal auf.</p>
<pre><code class="language-cpp">int karte[10][10] = 
{
	(0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
	(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
	(0, 0, 0, 0, 0, 0, 0, 0, 1, 0),
	(1, 1, 0, 1, 1, 0, 1, 0, 1, 0),
	(0, 1, 0, 1, 1, 1, 1, 0, 1, 0),
	(0, 1, 0, 1, 0, 0, 0, 0, 1, 0),
	(0, 1, 1, 1, 1, 0, 1, 0, 1, 0),
	(0, 1, 0, 0, 0, 0, 1, 1, 1, 0),
	(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
	(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
};

for(int x = 0; x &lt; 10; x++)
	for(int y = 0; y &lt; 10; y++)
	{
		if((karte[x][y]) == 1)
		{
                       ::Beep(100, 100);
		}
	}
</code></pre>
<p>doch dabei stellte sich herraus, dass nichts passiert. Die zeile ::Beep(100, 100); ist blos stellvertretend für den vorgang der wirklich passiert. aber den hab ich auch mehrmals getested. der funktioniert. wenn ich abfrage ob das feldelement gleich 0 ist klappt es. dann habe ich weiter getestet und herraus gefunden dass alle feldelemente den wert 0 halten. was ist hier passiert?<br />
ich verstehs nicht?</p>
<p>gruss freaker</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178494/mehrdimensionales-array</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 21:15:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178494.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Apr 2007 16:25:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mehrdimensionales array on Wed, 11 Apr 2007 16:25:29 GMT]]></title><description><![CDATA[<p>hi leute,</p>
<p>ich zweifele stark an mir. passt mal auf.</p>
<pre><code class="language-cpp">int karte[10][10] = 
{
	(0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
	(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
	(0, 0, 0, 0, 0, 0, 0, 0, 1, 0),
	(1, 1, 0, 1, 1, 0, 1, 0, 1, 0),
	(0, 1, 0, 1, 1, 1, 1, 0, 1, 0),
	(0, 1, 0, 1, 0, 0, 0, 0, 1, 0),
	(0, 1, 1, 1, 1, 0, 1, 0, 1, 0),
	(0, 1, 0, 0, 0, 0, 1, 1, 1, 0),
	(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
	(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
};

for(int x = 0; x &lt; 10; x++)
	for(int y = 0; y &lt; 10; y++)
	{
		if((karte[x][y]) == 1)
		{
                       ::Beep(100, 100);
		}
	}
</code></pre>
<p>doch dabei stellte sich herraus, dass nichts passiert. Die zeile ::Beep(100, 100); ist blos stellvertretend für den vorgang der wirklich passiert. aber den hab ich auch mehrmals getested. der funktioniert. wenn ich abfrage ob das feldelement gleich 0 ist klappt es. dann habe ich weiter getestet und herraus gefunden dass alle feldelemente den wert 0 halten. was ist hier passiert?<br />
ich verstehs nicht?</p>
<p>gruss freaker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1263980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1263980</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Wed, 11 Apr 2007 16:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to mehrdimensionales array on Wed, 11 Apr 2007 16:59:23 GMT]]></title><description><![CDATA[<p>was sollen denn die ganzen runden klammer? arrays gibt man normalerweise in geschweiften klammern an, aber ich bin mir nicht sicher, ob es überhaupt irgendwie auf diese art und weise funktioniert... Warum schreibst du das alles nicht in ein int[100] array, statt dich mit dem ganzen mehrdimensionalen kram herumzuprügeln? hat doch keinen sinn hier... <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1264026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264026</guid><dc:creator><![CDATA[Andrey]]></dc:creator><pubDate>Wed, 11 Apr 2007 16:59:23 GMT</pubDate></item><item><title><![CDATA[Reply to mehrdimensionales array on Wed, 11 Apr 2007 17:19:02 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int koodaaee[10][10] =
	{
		{0, 1, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 1, 1, 1, 1, 1, 1, 1, 1, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 1, 0},
		{1, 1, 0, 1, 1, 0, 1, 0, 1, 0},
		{0, 1, 0, 1, 1, 1, 1, 0, 1, 0},
		{0, 1, 0, 1, 0, 0, 0, 0, 1, 0},
		{0, 1, 1, 1, 1, 0, 1, 0, 1, 0},
		{0, 1, 0, 0, 0, 0, 1, 1, 1, 0},
		{0, 1, 1, 1, 1, 1, 1, 1, 1, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}	
	};

for( x = 0; x &lt; 10; x++)
{
    for( y = 0; y &lt; 10; y++)
    {
        if(koodaaee[x][y] == 1)
        {
                       printf( &quot;%i\n&quot;, koodaaee[x][y] );
        }
    }
}
</code></pre>
<p>Funzt <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/1264043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264043</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Wed, 11 Apr 2007 17:19:02 GMT</pubDate></item></channel></rss>