<?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[Auf letzten Character eines Strings zugreifen]]></title><description><![CDATA[<p>Wenn man mit dem letzten Character eines Strings etwas machen will muss man dann</p>
<pre><code class="language-cpp">str[str.length() - 1]
</code></pre>
<p>benutzen oder geht es eleganter?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121038/auf-letzten-character-eines-strings-zugreifen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 13:58:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121038.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Sep 2005 11:43:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auf letzten Character eines Strings zugreifen on Mon, 19 Sep 2005 11:43:34 GMT]]></title><description><![CDATA[<p>Wenn man mit dem letzten Character eines Strings etwas machen will muss man dann</p>
<pre><code class="language-cpp">str[str.length() - 1]
</code></pre>
<p>benutzen oder geht es eleganter?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875633</guid><dc:creator><![CDATA[1st]]></dc:creator><pubDate>Mon, 19 Sep 2005 11:43:34 GMT</pubDate></item><item><title><![CDATA[Reply to Auf letzten Character eines Strings zugreifen on Mon, 19 Sep 2005 11:47:58 GMT]]></title><description><![CDATA[<p>*(str.rbegin())</p>
<p>geht auch noch, ist aber auch nicht wirklich toll. Ahso, .length() gibt's nicht, das heißt .size().</p>
<p>Und du hast immer die Vorbedingung, dass der String mindestens ein Zeichen enthält.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875639</guid><dc:creator><![CDATA[7H3 N4C3R]]></dc:creator><pubDate>Mon, 19 Sep 2005 11:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to Auf letzten Character eines Strings zugreifen on Mon, 19 Sep 2005 12:44:16 GMT]]></title><description><![CDATA[<p>7H3 N4C3R schrieb:</p>
<blockquote>
<p>Ahso, .length() gibt's nicht</p>
</blockquote>
<p>Gibts doch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875706</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Mon, 19 Sep 2005 12:44:16 GMT</pubDate></item><item><title><![CDATA[Reply to Auf letzten Character eines Strings zugreifen on Mon, 19 Sep 2005 12:48:42 GMT]]></title><description><![CDATA[<p>Stimmt, hast Recht. Allerdings die Beschreibung von length(): returns size() <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/875712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875712</guid><dc:creator><![CDATA[7H3 N4C3R]]></dc:creator><pubDate>Mon, 19 Sep 2005 12:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to Auf letzten Character eines Strings zugreifen on Mon, 19 Sep 2005 13:00:58 GMT]]></title><description><![CDATA[<p>str.back()?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875723</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875723</guid><dc:creator><![CDATA[ness]]></dc:creator><pubDate>Mon, 19 Sep 2005 13:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to Auf letzten Character eines Strings zugreifen on Mon, 19 Sep 2005 13:17:37 GMT]]></title><description><![CDATA[<p>Das hab ich nachgeschlagen, das gibt es nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875744</guid><dc:creator><![CDATA[7H3 N4C3R]]></dc:creator><pubDate>Mon, 19 Sep 2005 13:17:37 GMT</pubDate></item></channel></rss>