<?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[Zahl zu string]]></title><description><![CDATA[<p>Warum geht dass hier nicht? Und Was kann ich tun sodass es geht?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    unsigned long a=1928;
    string b=string(b);

    return 0;
}
</code></pre>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/212576/zahl-zu-string</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 20:28:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/212576.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 May 2008 20:56:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahl zu string on Wed, 07 May 2008 20:56:30 GMT]]></title><description><![CDATA[<p>Warum geht dass hier nicht? Und Was kann ich tun sodass es geht?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    unsigned long a=1928;
    string b=string(b);

    return 0;
}
</code></pre>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505175</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Wed, 07 May 2008 20:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl zu string on Wed, 07 May 2008 21:02:02 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;sstream&gt;

using namespace std;

int main()
{
    unsigned long a = 1928;
    stringstream stream;
    stream &lt;&lt; a;
    string b = stream.str();
    return 0;
}
</code></pre>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505178</guid><dc:creator><![CDATA[Phoemuex]]></dc:creator><pubDate>Wed, 07 May 2008 21:02:02 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl zu string on Wed, 07 May 2008 21:07:28 GMT]]></title><description><![CDATA[<p>Du hast wohl...</p>
<p>string b = string(<strong>a</strong>);</p>
<p>...gemeint?!<br />
Wie auch immer:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;sstream&gt;
using namespace std;

string IntToString(int value)
{
	ostringstream oss;
	oss &lt;&lt; value;
	return oss.str();
}

int StringToInt(const string&amp; _string)
{
	istringstream iss;
	iss.str(_string);
	int value;
	iss &gt;&gt; value;
	return value;
}

int main()
{
	cout &lt;&lt; IntToString(3) + &quot;b&quot; &lt;&lt; endl;
	cout &lt;&lt; StringToInt(&quot;5&quot;) + 1 &lt;&lt; endl;
}
</code></pre>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505181</guid><dc:creator><![CDATA[ceplusplus*loggedoff]]></dc:creator><pubDate>Wed, 07 May 2008 21:07:28 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl zu string on Thu, 08 May 2008 08:11:25 GMT]]></title><description><![CDATA[<p>Ach was, das Thema hatten wir doch bereits zur Genüge: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-211753.html" rel="nofollow">Wieso kann man in C++ keine Strings mit Ints verknüpfen?</a></p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1505311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1505311</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Thu, 08 May 2008 08:11:25 GMT</pubDate></item></channel></rss>