<?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[Werte an den Anfang eines Strings einfügen]]></title><description><![CDATA[<p>Hallo kann man das hier auch noch besser machen?<br />
Gibt es vielleicht eine fertige Funktion mit der ich Werte vor den string anfügen kann? Oder ist das okay wenn ich es so mache wie in meinem Beispiel?</p>
<p>Beispiel:</p>
<pre><code class="language-cpp">// foo soll werden zu:  QQABC

string foo = &quot;ABC&quot;;
string foo2 = &quot;QQ&quot;;

foo2 += foo;
foo = foo2;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/301245/werte-an-den-anfang-eines-strings-einfügen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 03:37:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/301245.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Mar 2012 13:29:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Werte an den Anfang eines Strings einfügen on Thu, 22 Mar 2012 13:29:53 GMT]]></title><description><![CDATA[<p>Hallo kann man das hier auch noch besser machen?<br />
Gibt es vielleicht eine fertige Funktion mit der ich Werte vor den string anfügen kann? Oder ist das okay wenn ich es so mache wie in meinem Beispiel?</p>
<p>Beispiel:</p>
<pre><code class="language-cpp">// foo soll werden zu:  QQABC

string foo = &quot;ABC&quot;;
string foo2 = &quot;QQ&quot;;

foo2 += foo;
foo = foo2;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2194139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2194139</guid><dc:creator><![CDATA[str&amp;amp;]]></dc:creator><pubDate>Thu, 22 Mar 2012 13:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to Werte an den Anfang eines Strings einfügen on Thu, 22 Mar 2012 13:33:27 GMT]]></title><description><![CDATA[<p>Insert?</p>
<p>String hat viele Methoden zur Inhaltsänderung. Viele Wege führen zum Ziel:<br />
<a href="http://www.cplusplus.com/reference/string/string/" rel="nofollow">http://www.cplusplus.com/reference/string/string/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2194141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2194141</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 22 Mar 2012 13:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Werte an den Anfang eines Strings einfügen on Thu, 22 Mar 2012 13:34:21 GMT]]></title><description><![CDATA[<p>Am besten wahrscheinlich</p>
<pre><code class="language-cpp">foo.insert(0, &quot;QQ&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2194143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2194143</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Thu, 22 Mar 2012 13:34:21 GMT</pubDate></item><item><title><![CDATA[Reply to Werte an den Anfang eines Strings einfügen on Thu, 22 Mar 2012 13:54:05 GMT]]></title><description><![CDATA[<p>Ein =+ Operator wäre mal kuhl.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2194159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2194159</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Thu, 22 Mar 2012 13:54:05 GMT</pubDate></item><item><title><![CDATA[Reply to Werte an den Anfang eines Strings einfügen on Thu, 22 Mar 2012 14:34:17 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">foo = &quot;QQ&quot; + foo;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2194196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2194196</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Thu, 22 Mar 2012 14:34:17 GMT</pubDate></item></channel></rss>