<?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[zeichen übernehmen]]></title><description><![CDATA[<p>hi</p>
<p>moechte ein zeichen von einem stirng ins andere überkopieren.<br />
wie geht das?<br />
hab es so gemacht doch das ist irgendwie dohf, weil ich soviel strigs bracuhe..</p>
<pre><code class="language-cpp">string quelle = &quot;blubbblubb&quot;;
string buffer = &quot;0&quot;;
string ziel = &quot;&quot;;

if( quelle[i] == 'Z' ) {
buffer[0] = quelle[i];
ziel.append( buffer );
}
</code></pre>
<p>weil</p>
<pre><code class="language-cpp">ziel.append( 'Z' );
</code></pre>
<p>geht irgendwie ned, &quot;cannot convert char to std::string...&quot;</p>
<p>wäre um hilfe froh</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148832/zeichen-übernehmen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 00:57:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148832.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 May 2006 19:55:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zeichen übernehmen on Tue, 30 May 2006 19:55:44 GMT]]></title><description><![CDATA[<p>hi</p>
<p>moechte ein zeichen von einem stirng ins andere überkopieren.<br />
wie geht das?<br />
hab es so gemacht doch das ist irgendwie dohf, weil ich soviel strigs bracuhe..</p>
<pre><code class="language-cpp">string quelle = &quot;blubbblubb&quot;;
string buffer = &quot;0&quot;;
string ziel = &quot;&quot;;

if( quelle[i] == 'Z' ) {
buffer[0] = quelle[i];
ziel.append( buffer );
}
</code></pre>
<p>weil</p>
<pre><code class="language-cpp">ziel.append( 'Z' );
</code></pre>
<p>geht irgendwie ned, &quot;cannot convert char to std::string...&quot;</p>
<p>wäre um hilfe froh</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068384</guid><dc:creator><![CDATA[appendix]]></dc:creator><pubDate>Tue, 30 May 2006 19:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to zeichen übernehmen on Tue, 30 May 2006 20:21:20 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>siehe <a href="http://www.cppreference.com/cppstring/index.html" rel="nofollow">string::push_back/string::insert</a>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068401</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068401</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 30 May 2006 20:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to zeichen übernehmen on Tue, 30 May 2006 20:26:51 GMT]]></title><description><![CDATA[<p>hey super<br />
so gehts</p>
<p>push_back war was ich suchte</p>
<p>danke danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068406</guid><dc:creator><![CDATA[appendixyz]]></dc:creator><pubDate>Tue, 30 May 2006 20:26:51 GMT</pubDate></item><item><title><![CDATA[Reply to zeichen übernehmen on Tue, 30 May 2006 20:34:13 GMT]]></title><description><![CDATA[<p>hallo ich nochmal</p>
<p>dank des links fand ich append noch in varianten.</p>
<p>hab also mit</p>
<pre><code class="language-cpp">append( 1, 'Z' );
</code></pre>
<p>das gleiche ergebniss wie</p>
<pre><code class="language-cpp">push_back( 'Z' );
</code></pre>
<p>was ist nun besser?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068413</guid><dc:creator><![CDATA[appendixy]]></dc:creator><pubDate>Tue, 30 May 2006 20:34:13 GMT</pubDate></item></channel></rss>