<?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[String kopieren]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich möchte vone einem std::string eine Kopie anfertigen.<br />
<a href="http://www.cppreference.com/cppstring/copy.html" rel="nofollow">http://www.cppreference.com/cppstring/copy.html</a></p>
<p>Ist es der normale Weg das man dabei char* geht? Oder habe ich da eine Funktion übersehen? (Die Kopie soll erhalten bleiben wenn das Original verändert wird.)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177315/string-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 22:19:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177315.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Mar 2007 08:49:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String kopieren on Fri, 30 Mar 2007 08:49:43 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich möchte vone einem std::string eine Kopie anfertigen.<br />
<a href="http://www.cppreference.com/cppstring/copy.html" rel="nofollow">http://www.cppreference.com/cppstring/copy.html</a></p>
<p>Ist es der normale Weg das man dabei char* geht? Oder habe ich da eine Funktion übersehen? (Die Kopie soll erhalten bleiben wenn das Original verändert wird.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255825</guid><dc:creator><![CDATA[ZubX]]></dc:creator><pubDate>Fri, 30 Mar 2007 08:49:43 GMT</pubDate></item><item><title><![CDATA[Reply to String kopieren on Fri, 30 Mar 2007 08:53:21 GMT]]></title><description><![CDATA[<p>Der normale Weg geht über den Copy-Ctor bzw. op=:</p>
<pre><code class="language-cpp">string src=&quot;Hallo Welt&quot;;
string tgt=src;
</code></pre>
<p>(copy() dient nur dazu, die Stringdaten in ein externes char-Array auszulagern - brauchst du nur, wenn du ihn an eine Funktion übergeben willst, die mit char* arbeiten will)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255827</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 30 Mar 2007 08:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to String kopieren on Fri, 30 Mar 2007 09:07:20 GMT]]></title><description><![CDATA[<p>So einfach? Vielen dank CStoll <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/1255839</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255839</guid><dc:creator><![CDATA[ZubX]]></dc:creator><pubDate>Fri, 30 Mar 2007 09:07:20 GMT</pubDate></item></channel></rss>