<?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[Informationen in ein String packen...]]></title><description><![CDATA[<p>Ich hab bisher immer alle Informationen so in ein String gepackt:</p>
<pre><code class="language-cpp">string all;
all += getApplication;
all += &quot;\n&quot;;
all += &quot;Betriebssystem:		&quot;;
all += get.OS();
...
</code></pre>
<p>Wie kann man das eleganter lösen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/144106/informationen-in-ein-string-packen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 14:50:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/144106.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Apr 2006 14:25:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Informationen in ein String packen... on Fri, 14 Apr 2006 14:25:18 GMT]]></title><description><![CDATA[<p>Ich hab bisher immer alle Informationen so in ein String gepackt:</p>
<pre><code class="language-cpp">string all;
all += getApplication;
all += &quot;\n&quot;;
all += &quot;Betriebssystem:		&quot;;
all += get.OS();
...
</code></pre>
<p>Wie kann man das eleganter lösen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1037489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1037489</guid><dc:creator><![CDATA[kernel64]]></dc:creator><pubDate>Fri, 14 Apr 2006 14:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to Informationen in ein String packen... on Fri, 14 Apr 2006 14:41:03 GMT]]></title><description><![CDATA[<p>Was findest du denn daran unelegant?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1037495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1037495</guid><dc:creator><![CDATA[fraage]]></dc:creator><pubDate>Fri, 14 Apr 2006 14:41:03 GMT</pubDate></item><item><title><![CDATA[Reply to Informationen in ein String packen... on Fri, 14 Apr 2006 14:43:47 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>eine andere Mögichkeit wäre nen ostringstream zu benutzen, aber das rentiert sich eigentlich nicht.</p>
<pre><code class="language-cpp">ostringstream ostr;
ostr&lt;&lt;getApplication&lt;&lt;&quot;\n&quot;&lt;&lt;&quot;Betriebssystem: &quot;&lt;&lt;get.OS();

string s(ostr.str());
</code></pre>
<p>MfG</p>
<p>GPC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1037498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1037498</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Fri, 14 Apr 2006 14:43:47 GMT</pubDate></item></channel></rss>