<?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[Char to String ...aber wie?]]></title><description><![CDATA[<p>Hallo liebe Community,<br />
ich habe glaub eine recht doofe Frage...und ich habe auch schon gegoogelt; Bin aber wahrscheinlich einfach zu dumm die Antwort zu finden.</p>
<p>Ich habe folgendes Problem:<br />
Wie kann ich einen Char in einen String konvertieren bzw....wenn ich schon einen vorhandenen String habe dort einfügen?<br />
Danke schon mal im vorraus!<br />
Gruß Realist</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/240202/char-to-string-aber-wie</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 03:41:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/240202.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 May 2009 15:04:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Char to String ...aber wie? on Sun, 03 May 2009 15:04:46 GMT]]></title><description><![CDATA[<p>Hallo liebe Community,<br />
ich habe glaub eine recht doofe Frage...und ich habe auch schon gegoogelt; Bin aber wahrscheinlich einfach zu dumm die Antwort zu finden.</p>
<p>Ich habe folgendes Problem:<br />
Wie kann ich einen Char in einen String konvertieren bzw....wenn ich schon einen vorhandenen String habe dort einfügen?<br />
Danke schon mal im vorraus!<br />
Gruß Realist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1704854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1704854</guid><dc:creator><![CDATA[Realist]]></dc:creator><pubDate>Sun, 03 May 2009 15:04:46 GMT</pubDate></item><item><title><![CDATA[Reply to Char to String ...aber wie? on Sun, 03 May 2009 15:12:43 GMT]]></title><description><![CDATA[<p>Realist schrieb:</p>
<blockquote>
<p>Ich habe folgendes Problem:<br />
Wie kann ich einen Char in einen String konvertieren</p>
</blockquote>
<p>ganz einfach:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;string&gt;
#include&lt;windows.h&gt;
using namespace std;

int main()
{
char a[10]=&quot;abc&quot;;
string str;
str=a;
}
</code></pre>
<p>einfach mit =</p>
<p>wie man das hinten anfügen kann keine Ahnung, aber die Konvertierung ist einfach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1704857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1704857</guid><dc:creator><![CDATA[andi01]]></dc:creator><pubDate>Sun, 03 May 2009 15:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to Char to String ...aber wie? on Sun, 03 May 2009 15:17:23 GMT]]></title><description><![CDATA[<p>anhängen ist auch noch recht einfach</p>
<pre><code class="language-cpp">str+=&quot;def&quot;;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1704860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1704860</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 03 May 2009 15:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to Char to String ...aber wie? on Sun, 03 May 2009 15:18:17 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/string/string/" rel="nofollow">http://www.cplusplus.com/reference/string/string/</a></p>
<p><code>insert</code> oder <code>append</code> dürften die richtigen Funktionen sein. Aber schau dich ruhig ein wenig um <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1704861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1704861</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Sun, 03 May 2009 15:18:17 GMT</pubDate></item><item><title><![CDATA[Reply to Char to String ...aber wie? on Sun, 03 May 2009 15:29:47 GMT]]></title><description><![CDATA[<p>Hi, hier nochmal ein einfaches komplettes Codebeispiel:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;string&gt; 
#include&lt;windows.h&gt;

using namespace std;

int main()
{	char a[10]=&quot;abc&quot;;
	string str;
	str=a;//Konvertierung von char nach string
	str+=&quot;def&quot;;//Anhängen von def
}
</code></pre>
<p>so sollte sowohl konvertieren als auch anhängen kein Problem mehr sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1704865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1704865</guid><dc:creator><![CDATA[andi01]]></dc:creator><pubDate>Sun, 03 May 2009 15:29:47 GMT</pubDate></item><item><title><![CDATA[Reply to Char to String ...aber wie? on Sun, 03 May 2009 16:37:13 GMT]]></title><description><![CDATA[<p>Vielen Dank für die raschen Antworten =)...Die haben mir weitergeholfen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1704901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1704901</guid><dc:creator><![CDATA[Realist]]></dc:creator><pubDate>Sun, 03 May 2009 16:37:13 GMT</pubDate></item></channel></rss>