<?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[int nach string]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich brauche mal schnell eure Hilfe, am besten noch heute Abend:</p>
<pre><code>int zahl=5;
string s1;
s1+=zahl;
cout &lt;&lt; s1;
</code></pre>
<p>Anstatt &quot;5&quot; auszugeben, kommt leider immer ein Zeichen. Gibts da irgenteinen Trick?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/243895/int-nach-string</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 16:50:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/243895.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Jun 2009 17:04:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:04:38 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich brauche mal schnell eure Hilfe, am besten noch heute Abend:</p>
<pre><code>int zahl=5;
string s1;
s1+=zahl;
cout &lt;&lt; s1;
</code></pre>
<p>Anstatt &quot;5&quot; auszugeben, kommt leider immer ein Zeichen. Gibts da irgenteinen Trick?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1731149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731149</guid><dc:creator><![CDATA[dringe]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:07:56 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;sstream&gt;
int i = 5;
std::stringstream string;
string &lt;&lt; i;
std::cout &lt;&lt; string.str() &lt;&lt; std:endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1731150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731150</guid><dc:creator><![CDATA[Cox]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:11:36 GMT]]></title><description><![CDATA[<p>Wenn deine Zahle kleiner 10 ist kannst du es mit + &quot;0&quot; machen:</p>
<pre><code class="language-cpp">char text;
text = '0' + Zahl; //Zahl + ZeichenCode
</code></pre>
<p>Wie gesagt, funktioniert nur von 0-9. Wenn du auch größere Zahlen in einen String umwandeln willst benutze z.B. sprintf(siehe <a href="http://cplusplus.com" rel="nofollow">cplusplus.com</a>).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1731153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731153</guid><dc:creator><![CDATA[SWW13]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:14:43 GMT]]></title><description><![CDATA[<p>Suchen hilft, z.B. FAQ -&gt; Einmal Zahl nach String und zurück</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1731156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731156</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:22:55 GMT]]></title><description><![CDATA[<p>Kann man einen stringstream an eine Funktion übergeben, die 'const char *' erwartet?</p>
<p>Ich finde die Funktion c_str() nicht..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1731162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731162</guid><dc:creator><![CDATA[dringe]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:22:55 GMT</pubDate></item><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:27:16 GMT]]></title><description><![CDATA[<p><code>str().c_str()</code></p>
<p>Und schau vielleicht auch mal auf <a href="http://www.cplusplus.com" rel="nofollow">www.cplusplus.com</a> nach...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1731165</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731165</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:27:16 GMT</pubDate></item><item><title><![CDATA[Reply to int nach string on Mon, 22 Jun 2009 17:28:27 GMT]]></title><description><![CDATA[<p>Du sollst auch nicht suchen... versuchs mal mit &quot;string.str().c_str()&quot;. Hab bisher mit StringStreamen nicht gearbeitet .str() scheint aber einen string zurück zu liefern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1731167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1731167</guid><dc:creator><![CDATA[SWW13]]></dc:creator><pubDate>Mon, 22 Jun 2009 17:28:27 GMT</pubDate></item></channel></rss>