<?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[Array Inhalt auslesen (Zeilenweise)]]></title><description><![CDATA[<p>Hallo<br />
Ich bin wirklich ein C++ Anfänger.<br />
Folgendes Problem:Ich habe ein Array</p>
<pre><code>char arrNEU[1000][3][50];
</code></pre>
<p>das wird auch ohne Probleme gefüllt.<br />
Allerdings will ich wissen ob<br />
in der Zeile</p>
<pre><code>arrNEU[1000][3];
</code></pre>
<p>Etwas drin steht, oder ob das Feld leer ist.<br />
Gib es dafür eine Funktion oder muss ich die auch durchlaufen??<br />
Merci</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123457/array-inhalt-auslesen-zeilenweise</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 14:02:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123457.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Oct 2005 09:30:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Array Inhalt auslesen (Zeilenweise) on Mon, 17 Oct 2005 09:30:18 GMT]]></title><description><![CDATA[<p>Hallo<br />
Ich bin wirklich ein C++ Anfänger.<br />
Folgendes Problem:Ich habe ein Array</p>
<pre><code>char arrNEU[1000][3][50];
</code></pre>
<p>das wird auch ohne Probleme gefüllt.<br />
Allerdings will ich wissen ob<br />
in der Zeile</p>
<pre><code>arrNEU[1000][3];
</code></pre>
<p>Etwas drin steht, oder ob das Feld leer ist.<br />
Gib es dafür eine Funktion oder muss ich die auch durchlaufen??<br />
Merci</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893944</guid><dc:creator><![CDATA[C++Noob]]></dc:creator><pubDate>Mon, 17 Oct 2005 09:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Array Inhalt auslesen (Zeilenweise) on Mon, 17 Oct 2005 09:37:54 GMT]]></title><description><![CDATA[<p>also...</p>
<pre><code class="language-cpp">// wenn du ein Array so definierst:
char arr[1000][3][50];

// , dann existiert das Element nicht:
char* wert = arr[1000[3];

// weil das Array nur bis [999][2] geht.

gucken ob in der zeile was steht kannst du zB so:
if(arr[999][2][0] == 0)
  cout &lt;&lt; &quot;nichts is in der Zeile!&quot; &lt;&lt; endl;

// das schaut dann, ob das erste zeichen '\0' ist, also ob die zeichenkette die länge 0 hat.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/893950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893950</guid><dc:creator><![CDATA[Maxi]]></dc:creator><pubDate>Mon, 17 Oct 2005 09:37:54 GMT</pubDate></item><item><title><![CDATA[Reply to Array Inhalt auslesen (Zeilenweise) on Mon, 17 Oct 2005 09:44:01 GMT]]></title><description><![CDATA[<p>Ja super danke . . .<br />
Aber ich glaube meine Frage war etwas verwirrend.<br />
Das hatte ich auch schon.<br />
Aber ich will nicht gucken ob das erste Zeichen leer ist, sonder die ganze Zeile.</p>
<pre><code>If(arr[999][2] == 0)
</code></pre>
<p>Trotzdem schon mal vielen vielen Dank.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893956</guid><dc:creator><![CDATA[C++Noob]]></dc:creator><pubDate>Mon, 17 Oct 2005 09:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to Array Inhalt auslesen (Zeilenweise) on Mon, 17 Oct 2005 09:46:29 GMT]]></title><description><![CDATA[<p>Ok, das war ja schon die Lösung!<br />
Vielen Danke . . <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/893958</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893958</guid><dc:creator><![CDATA[C++Noob]]></dc:creator><pubDate>Mon, 17 Oct 2005 09:46:29 GMT</pubDate></item><item><title><![CDATA[Reply to Array Inhalt auslesen (Zeilenweise) on Mon, 17 Oct 2005 09:47:32 GMT]]></title><description><![CDATA[<p>Da musst du schauen, was dein Programm mit einer leeren Zeile macht. Wenn kein Text vorhanden ist, sollte das erste Zeichen das Nullterminierungszeichen sein, somit kannst du Maxis` Code verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893959</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Mon, 17 Oct 2005 09:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to Array Inhalt auslesen (Zeilenweise) on Mon, 17 Oct 2005 09:49:23 GMT]]></title><description><![CDATA[<p>Das geht leider nicht so einfach, du kannst höchstens mit einer Schleife die gesamte Zeile durchlaufen:</p>
<pre><code class="language-cpp">bool leer=true;
for(int i=0;i&lt;50;++i)
  if(arr[999][2][i]!=0)
  {
    leer=false;
    break;
  }

if(leer) ...
</code></pre>
<p>(wenn du willst, kannst du das auch noch in eine Funktion verpacken)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893961</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 17 Oct 2005 09:49:23 GMT</pubDate></item></channel></rss>