<?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[Cout Anwesiung]]></title><description><![CDATA[<p>Also ich hab mit dem Programm Dev-C++ angefangen zu programmieren, bzw. es auch mit dem Programm zu lernen.</p>
<p>printf gibt ja etwas in einer DosBox aus, aber wenn ich das über Cout versuche, passsiert rein garnichts, keine Fehler.</p>
<p>Quellcode:</p>
<pre><code class="language-csharp">#include &lt;iostream&gt;
using namespace std;

int main()
{
      int zahl1;
      cout&lt;&lt;&quot;Bitte eine Zahl eingeben\n&quot;;
      cin&gt;&gt;zahl1;
      cout&lt;&lt;&quot;Zahl 1: &quot;&lt;&lt;zahl1&lt;&lt;&quot;\n&quot;;
}
</code></pre>
<p>Kann mir jemand sagen, was ich falsch gemacht habe?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/187094/cout-anwesiung</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 14:24:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/187094.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jul 2007 20:14:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:14:08 GMT]]></title><description><![CDATA[<p>Also ich hab mit dem Programm Dev-C++ angefangen zu programmieren, bzw. es auch mit dem Programm zu lernen.</p>
<p>printf gibt ja etwas in einer DosBox aus, aber wenn ich das über Cout versuche, passsiert rein garnichts, keine Fehler.</p>
<p>Quellcode:</p>
<pre><code class="language-csharp">#include &lt;iostream&gt;
using namespace std;

int main()
{
      int zahl1;
      cout&lt;&lt;&quot;Bitte eine Zahl eingeben\n&quot;;
      cin&gt;&gt;zahl1;
      cout&lt;&lt;&quot;Zahl 1: &quot;&lt;&lt;zahl1&lt;&lt;&quot;\n&quot;;
}
</code></pre>
<p>Kann mir jemand sagen, was ich falsch gemacht habe?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326117</guid><dc:creator><![CDATA[Cr3at0r]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:14:08 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:17:47 GMT]]></title><description><![CDATA[<p>Der Code ist korrekt. Allerdings kann es sein, dass du das Ergebnis nicht siehst, weil dich die Kommandozeile immer schließt.</p>
<p>Dazu siehe Faq.</p>
<p>Und wenn du nur &quot;\n&quot; nutzt, kann es sein, dass der Text noch nicht ausgegeben wird, da die Ausgabe gepuffert ist.</p>
<p>&lt;&lt; std::endl; sendet einen Zeilenumbruch und flush den Buffer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326120</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326120</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:17:47 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:19:45 GMT]]></title><description><![CDATA[<p>The-Kenny schrieb:</p>
<blockquote>
<p>Der Code ist korrekt. Allerdings kann es sein, dass du das Ergebnis nicht siehst, weil dich die Kommandozeile immer schließt.</p>
</blockquote>
<p>Welche Kommandozeile meinst du? Und wieso schließt sie sich immer?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326121</guid><dc:creator><![CDATA[Cr3at0r]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:19:45 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:20:11 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{
      int zahl1;
      cout &lt;&lt; &quot;Bitte eine Zahl eingeben&quot; &lt;&lt; endl;
      cin &gt;&gt; zahl1;
      cout &lt;&lt; &quot;Zahl 1: &quot; &lt;&lt; zahl1 &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1326122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326122</guid><dc:creator><![CDATA[Krux]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:22:05 GMT]]></title><description><![CDATA[<p>Cr3at0r schrieb:</p>
<blockquote>
<p>The-Kenny schrieb:</p>
<blockquote>
<p>Der Code ist korrekt. Allerdings kann es sein, dass du das Ergebnis nicht siehst, weil dich die Kommandozeile immer schließt.</p>
</blockquote>
<p>Welche Kommandozeile meinst du? Und wieso schließt sie sich immer?</p>
</blockquote>
<p>Wenn du einfach auf die erzeugte .exe doppelklickst, öffnet sich die Windows-Shell (cmd.exe) und führt halt dein programm aus... Die bleibt allerdings nur solange offen, wie dein Programm läuft.<br />
Deswegen kann es sein, dass du die letzte Ausgabe von dir nicht siehst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326125</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:22:05 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:29:11 GMT]]></title><description><![CDATA[<p>Wenn ich die .exe ausführe, passiert rein garnichts. Ich hab mal gelesen das sich das Programm, bzw. cmd.exe immer sofort wieder schließt, also hab ich die Anweisung getch(); hinzugefügt, hilft allerdings leider auch nicht.</p>
<pre><code class="language-csharp">#include &lt;iostream&gt;
#include &lt;conio.h&gt;
using namespace std;
using std::cout;
using std::endl;

int main()
{
      int zahl1;
      cout&lt;&lt;&quot;Bitte eine Zahl eingeben\n&quot;&lt;&lt;endl;
      cin&gt;&gt;zahl1;
      cout&lt;&lt;&quot;Zahl 1: &quot;&lt;&lt;zahl1&lt;&lt;&quot;\n&quot;&lt;&lt;endl;
      cout.flush();
      getch();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1326130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326130</guid><dc:creator><![CDATA[Cr3at0r]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:30:57 GMT]]></title><description><![CDATA[<p>wenn es bereits mit printf() funktioniert dürfte der OP das richtig behandeln.</p>
<p>Schon den Tip mit std::flush / std::endl versucht?</p>
<p>Kommt schon die erste Ausgabe nicht? Cin sollte doch cout flushen oder? Dann liegt das Problem anderswo ...</p>
<p>EDIT://<br />
Also öffnet sich die Konsole gar nicht?<br />
Dann nehm ich alles zurück</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326131</guid><dc:creator><![CDATA[darthdespotism]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:32:37 GMT]]></title><description><![CDATA[<p>Ich sehe keine Konsole erscheinen. Mache einen Doppelklick darauf und sehe ganz kruz die Sanduhr und das wars dann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326133</guid><dc:creator><![CDATA[Cr3at0r]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:32:37 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:40:34 GMT]]></title><description><![CDATA[<p>nachtrag:</p>
<p>Hab das Problem gefunden, es lag an den Projekt-Eigenschaften, dennoch vielen Dank an euch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326141</guid><dc:creator><![CDATA[Cr3at0r]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:40:34 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:43:06 GMT]]></title><description><![CDATA[<p>Und du hast sicher auch ein <em>Konsolen</em>projekt eingestellt? Eine Windows-Anwendung erzeugt ja kein Fenster (von sich aus).</p>
<p>Edit: ok... Langsam <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/1326144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326144</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:43:06 GMT</pubDate></item><item><title><![CDATA[Reply to Cout Anwesiung on Sun, 15 Jul 2007 20:52:47 GMT]]></title><description><![CDATA[<p>Genau das war mein Problem anscheinend. *G*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326154</guid><dc:creator><![CDATA[Cr3at0r]]></dc:creator><pubDate>Sun, 15 Jul 2007 20:52:47 GMT</pubDate></item></channel></rss>