<?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[C++ char array bestimmt Stelle auslesen]]></title><description><![CDATA[<p>Folgendes Problem ich möchte gerne das der Benutzer in ein char schreibt und ich dann jeden einzelnen buchstaben/Zahl einzeln abfragen kann bzw. weitergeben an andere Funktionen. Hab es mit char[i] nicht hinbekommen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/336534/c-char-array-bestimmt-stelle-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 05:23:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/336534.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Jan 2016 16:10:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 16:10:44 GMT]]></title><description><![CDATA[<p>Folgendes Problem ich möchte gerne das der Benutzer in ein char schreibt und ich dann jeden einzelnen buchstaben/Zahl einzeln abfragen kann bzw. weitergeben an andere Funktionen. Hab es mit char[i] nicht hinbekommen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485011</guid><dc:creator><![CDATA[Unbekanter]]></dc:creator><pubDate>Thu, 28 Jan 2016 16:10:44 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 16:28:00 GMT]]></title><description><![CDATA[<p>Unbekanter schrieb:</p>
<blockquote>
<p>Hab es mit char[i] nicht hinbekommen</p>
</blockquote>
<p>Damit können wir nicht viel anfangen, bitte erkläre genauer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485014</guid><dc:creator><![CDATA[Singender Holzkübel]]></dc:creator><pubDate>Thu, 28 Jan 2016 16:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 16:28:35 GMT]]></title><description><![CDATA[<p>so:</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;

void andereFunktion (char einzelnerBuchstabe) {
    std::cout &lt;&lt; einzelnerBuchstabe &lt;&lt; &quot;;&quot;;
}

int main () {
    using namespace std;
    string einChar;
    cout &lt;&lt; &quot;Bitte Text eingeben (Ende mit &lt;Return&gt;):\n&quot;;
    getline (cin, einChar);
    for (auto einzelnerBuchstabe: einChar)
        andereFunktion (einzelnerBuchstabe);
    cout &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2485015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485015</guid><dc:creator><![CDATA[Kenner von C++]]></dc:creator><pubDate>Thu, 28 Jan 2016 16:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 16:59:49 GMT]]></title><description><![CDATA[<p>Hab den fehler in meinem programm gefunden aber habe eine andere Frage wie kann man den Inhalt eines arrays messen, also wie viel zahlen/buchstaben da drin sind.<br />
sizeof() gibt mir nur die Größe des arrays wieder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485020</guid><dc:creator><![CDATA[Unbekanter]]></dc:creator><pubDate>Thu, 28 Jan 2016 16:59:49 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:01:14 GMT]]></title><description><![CDATA[<p>/ sizeof(typ)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485021</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:01:14 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:09:14 GMT]]></title><description><![CDATA[<p>Wenn ich sizeof(meinchar) eingebe kommt 20 (meine array größe)<br />
Wenn ich aber sizeof(char) mache kommt 1<br />
Und deshalb funktioniert sizeof(meinchar) / sizeof(char) irgendwie nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485024</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485024</guid><dc:creator><![CDATA[Unbekanter]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:09:14 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:14:17 GMT]]></title><description><![CDATA[<p>20 geteilt durch 1 ergibt 20. Dein Array ist 20 elemente lang.<br />
Von char-arrays zur verarbeitung von zeichenketten ist abzuraten, verwende lieber std::string (fürs erste. Irgendwann solltest du dir aufjedenfall mal unicode anschauen, aber bis dahin dauert es sicher noch ein wenig).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485026</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:16:37 GMT]]></title><description><![CDATA[<p>Was stimmt denn an der 20 nicht?</p>
<p><code>sizeof(char)</code> ist per Definition 1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485027</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:16:37 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:19:52 GMT]]></title><description><![CDATA[<p>Ich möchte gern wissen wie viele Elemente der User eingegeben hat und nicht wie viel in das array reinpassen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485029</guid><dc:creator><![CDATA[Unbekanter]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:19:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:21:59 GMT]]></title><description><![CDATA[<p>sizeof gibt nur an wie groß das array tatsächlich ist, und nicht wie weit es gefüllt ist.</p>
<p>String.legth() sollte dir da weiterhelfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485030</guid><dc:creator><![CDATA[seelenquell]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:21:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:23:38 GMT]]></title><description><![CDATA[<p>Bzw. bei einem char-Array <code>strlen</code></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485031</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:23:38 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:28:44 GMT]]></title><description><![CDATA[<p>Thx ihr habt mir sehr geholfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485033</guid><dc:creator><![CDATA[Unbekanter]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to C++ char array bestimmt Stelle auslesen on Thu, 28 Jan 2016 17:32:01 GMT]]></title><description><![CDATA[<p>Wenn man selber mit einer Schleife durch einen C-String geht, überprüft man auf den Terminator und nicht auf <code>strlen</code></p>
<p>Aber <code>std:string</code> wäre besser.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2485035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2485035</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Thu, 28 Jan 2016 17:32:01 GMT</pubDate></item></channel></rss>