<?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[Benutzereingabe in stream]]></title><description><![CDATA[<p>Ist es möglich den Benutzer bei Funktion A in einen Stream irgendwas eingeben zu lassen, und bei Funktion B geb ich es dann wieder auf?<br />
Wenn ja wie geht das?</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206410/benutzereingabe-in-stream</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 08:48:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206410.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Feb 2008 21:19:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 21:19:57 GMT]]></title><description><![CDATA[<p>Ist es möglich den Benutzer bei Funktion A in einen Stream irgendwas eingeben zu lassen, und bei Funktion B geb ich es dann wieder auf?<br />
Wenn ja wie geht das?</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462197</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 24 Feb 2008 21:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 21:23:53 GMT]]></title><description><![CDATA[<p>Von der einten Klasse das, was die andere Klasse ausgeben muss einfach übergeben und dann ausgeben lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462199</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 24 Feb 2008 21:23:53 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 21:28:03 GMT]]></title><description><![CDATA[<p>Öh wie meinst du das jetzt?<br />
Also irgendwie:</p>
<p>ofstream &lt;&lt; &quot;Hallo&quot;;<br />
cout &lt;&lt; ofstream;<br />
???<br />
Schon mal n Ansatz?</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462202</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 24 Feb 2008 21:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 21:50:07 GMT]]></title><description><![CDATA[<p>Sorry, habe da was falsch verstanden.</p>
<p>Erklär bitte ein wenig genauer, was du machen willst. Und ev. den Sinn davon, dann kann ich es ev. besser nachvollziehen..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462214</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 24 Feb 2008 21:50:07 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 21:56:02 GMT]]></title><description><![CDATA[<p>Weiß nicht wie ich es genau erklären soll. Ich bilde mir ein, das ich da mal was gesehen habe, das man in ein &quot;stream&quot; Objekt was einlesen kann, und dann anschließend wieder auslesen.<br />
War unten von mir bissel zu vereinfacht dargestellt.<br />
Es müsste halt irgendwie:<br />
ofstream TEST;<br />
TEST &lt;&lt; &quot;Hallo&quot;;<br />
cout &lt;&lt; TEST &lt;&lt; &quot;\n&quot;;<br />
heißen.<br />
Das geht aber glaub nicht? Gibts aber irgendwie sowas in der art das funktioniertß Kann mir jemand folgen?<br />
MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462218</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462218</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 24 Feb 2008 21:56:02 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 21:58:50 GMT]]></title><description><![CDATA[<p>ich denke, dass du das meinst:</p>
<pre><code class="language-cpp">std::string str &lt;&lt; &quot;hallo&quot;;

std::cout &lt;&lt; str;
</code></pre>
<p>Sollte so gehen..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462223</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 24 Feb 2008 21:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 22:17:09 GMT]]></title><description><![CDATA[<p>Das geht bei mir nicht, kommt:<br />
main.cpp:8: error: expected primary-expression before &quot;str&quot;<br />
main.cpp:8: error: expected <code>;' before &quot;str&quot; main.cpp:10: error:</code>str' undeclared (first use this function)<br />
main.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.)</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462230</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 24 Feb 2008 22:17:09 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 22:22:36 GMT]]></title><description><![CDATA[<p>Achso ... hmm also es gibt std::istream (Input), std::ostream (Output) und std::iostream (Input / Output). Von d.h. geht bsw.</p>
<pre><code class="language-cpp">std::stringstream ss;
ss &lt;&lt; &quot;12345678Das war eine Zahl&quot;;
int var(0);
ss &gt;&gt; var;
std::cout &lt;&lt; var &lt;&lt; std::endl; // 12345678 ausgeben
std::cout &lt;&lt; ss.rdbuf() &lt;&lt; std::endl; // was noch im Buffer ist, ausgeben: &quot;Das war eine Zahl&quot; 
// alternativ: std::cout &lt;&lt; ss.str() &lt;&lt; std::endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1462233</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462233</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 24 Feb 2008 22:22:36 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 22:23:52 GMT]]></title><description><![CDATA[<p>Habs gerade gesehen, dass es nicht geht. <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>War irgendwie überzogen, dass es irgendwie so gehen muss.. <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>
<p>EDIT:<br />
Achja... stringstream habe ich auch mal gesehen.. <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/1462235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462235</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 24 Feb 2008 22:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 22:52:07 GMT]]></title><description><![CDATA[<p>Geht bei mir auch nicht:</p>
<p>Switching to target: default<br />
Compiling: main.cpp<br />
main.cpp: In function <code>int main()': main.cpp:8: error: aggregate</code>std::stringstream ss' has incomplete type and cannot be defined<br />
Process terminated with status 1 (0 minutes, 0 seconds)</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462242</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 24 Feb 2008 22:52:07 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 23:14:07 GMT]]></title><description><![CDATA[<p>Hast du &lt;sstream&gt; eingebunden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462252</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 24 Feb 2008 23:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to Benutzereingabe in stream on Sun, 24 Feb 2008 23:40:49 GMT]]></title><description><![CDATA[<p>Aso, mh nä. Kenn ich gar net. Okay, dann bin ich an allem Schuld. Sry. Hab gedacht da reicht fstream.</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462259</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 24 Feb 2008 23:40:49 GMT</pubDate></item></channel></rss>