<?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[anzahl der zeichen im string]]></title><description><![CDATA[<p>hallo,<br />
ich hab einen string string1.<br />
Wie bekomme ich die Anzahl der Zeichen rauß die grade im String drin sind?<br />
z.b. string1 = &quot;123&quot;. Ich hab schon strlen(string1.c_str()) probiert und string1.size() aber beides funktionioert nicht richtig</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/224736/anzahl-der-zeichen-im-string</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 04:20:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/224736.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Oct 2008 13:29:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to anzahl der zeichen im string on Tue, 14 Oct 2008 13:29:58 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich hab einen string string1.<br />
Wie bekomme ich die Anzahl der Zeichen rauß die grade im String drin sind?<br />
z.b. string1 = &quot;123&quot;. Ich hab schon strlen(string1.c_str()) probiert und string1.size() aber beides funktionioert nicht richtig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598818</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598818</guid><dc:creator><![CDATA[stringuserextreme]]></dc:creator><pubDate>Tue, 14 Oct 2008 13:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to anzahl der zeichen im string on Tue, 14 Oct 2008 13:32:34 GMT]]></title><description><![CDATA[<p>Klar funktioniert size:</p>
<pre><code class="language-cpp">std::string string1=&quot;1234567&quot;;
size_t i=string1.size();  //i==7
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1598820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598820</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 14 Oct 2008 13:32:34 GMT</pubDate></item><item><title><![CDATA[Reply to anzahl der zeichen im string on Tue, 14 Oct 2008 13:34:16 GMT]]></title><description><![CDATA[<p>Vielleicht hast du vergessen, dass die 0 nicht mitgezählt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598821</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 14 Oct 2008 13:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to anzahl der zeichen im string on Tue, 14 Oct 2008 13:39:50 GMT]]></title><description><![CDATA[<p>Gib doch mal einen Beispiel String und dein Zählergebnis an. Vielleicht kann man dir dann besser helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598823</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598823</guid><dc:creator><![CDATA[it0101@loggedoff]]></dc:creator><pubDate>Tue, 14 Oct 2008 13:39:50 GMT</pubDate></item></channel></rss>