<?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[String Stream als Übergabe]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich will in mein programm eine methode implementieren die einen string engegennimmt und den ausgibt.</p>
<p>jetzt will ich die übergabe in folgender form haben.<br />
object.foo(&quot;Hallo&quot;&lt;&lt;&quot; Welt!&quot;);</p>
<p>Ich haeb es mit stringstream als Parameter versucht, hat aber nicht funktioniert.<br />
Habt ihr vieleicht eine Lösung?</p>
<p>Danke im Vorraus.<br />
MfG<br />
Artez</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/239820/string-stream-als-übergabe</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 07:19:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/239820.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Apr 2009 12:49:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String Stream als Übergabe on Tue, 28 Apr 2009 12:49:41 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich will in mein programm eine methode implementieren die einen string engegennimmt und den ausgibt.</p>
<p>jetzt will ich die übergabe in folgender form haben.<br />
object.foo(&quot;Hallo&quot;&lt;&lt;&quot; Welt!&quot;);</p>
<p>Ich haeb es mit stringstream als Parameter versucht, hat aber nicht funktioniert.<br />
Habt ihr vieleicht eine Lösung?</p>
<p>Danke im Vorraus.<br />
MfG<br />
Artez</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1702617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1702617</guid><dc:creator><![CDATA[Artes]]></dc:creator><pubDate>Tue, 28 Apr 2009 12:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to String Stream als Übergabe on Tue, 28 Apr 2009 12:59:58 GMT]]></title><description><![CDATA[<p>&quot;Hat nicht funktioniert&quot; ist keine Aussage.Was hat nicht funktioniert, zeig uns Code welcher compilierbar ist aber auf die Fehlerquelle eingeschränkt ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1702622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1702622</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Tue, 28 Apr 2009 12:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to String Stream als Übergabe on Tue, 28 Apr 2009 17:44:50 GMT]]></title><description><![CDATA[<p>Artes schrieb:</p>
<blockquote>
<p>jetzt will ich die übergabe in folgender form haben.<br />
object.foo(&quot;Hallo&quot;&lt;&lt;&quot; Welt!&quot;);</p>
</blockquote>
<p>An die Regeln der Programmiersprache und deren Syntax solltest du dich aber schon halten. <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>Mit StringStreams könntest du es etwa so machen:</p>
<pre><code class="language-cpp">std::stringstream Stream;
Stream &lt;&lt; &quot;Hallo &quot; &lt;&lt; 3 &lt;&lt; &quot;. Welt&quot;;
foo(Stream.str());
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1702782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1702782</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Tue, 28 Apr 2009 17:44:50 GMT</pubDate></item></channel></rss>