<?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[kein cout]]></title><description><![CDATA[<p>Hallo,<br />
hab hier eine quelldatei zur Wertrückgabe.</p>
<p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int quadrat(int x)<br />
{<br />
return(x*x);<br />
}</p>
<p>int main()</p>
<p>{<br />
int wert;<br />
cin.get();<br />
cin&gt;&gt;;<br />
cout&lt;&lt;quadrat(wert)&lt;&lt;endl;<br />
}</p>
<p>Mein Problem liegt darin, dass das 'quadrat(wert)' bei der Ausgabe nicht angezeigt wird. Was hab ich den falsch gemacht ?<br />
Ich danke schon mal im vorraus für eure antwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/270792/kein-cout</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 23:03:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/270792.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jul 2010 12:49:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kein cout on Sun, 18 Jul 2010 12:49:30 GMT]]></title><description><![CDATA[<p>Hallo,<br />
hab hier eine quelldatei zur Wertrückgabe.</p>
<p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int quadrat(int x)<br />
{<br />
return(x*x);<br />
}</p>
<p>int main()</p>
<p>{<br />
int wert;<br />
cin.get();<br />
cin&gt;&gt;;<br />
cout&lt;&lt;quadrat(wert)&lt;&lt;endl;<br />
}</p>
<p>Mein Problem liegt darin, dass das 'quadrat(wert)' bei der Ausgabe nicht angezeigt wird. Was hab ich den falsch gemacht ?<br />
Ich danke schon mal im vorraus für eure antwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928061</guid><dc:creator><![CDATA[diadoros]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:49:30 GMT</pubDate></item><item><title><![CDATA[Reply to kein cout on Sun, 18 Jul 2010 12:56:18 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">cin&gt;&gt;wert;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1928064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928064</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:56:18 GMT</pubDate></item><item><title><![CDATA[Reply to kein cout on Sun, 18 Jul 2010 14:02:43 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-1819.html" rel="nofollow">rüdiger</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-8.html" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928090</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 18 Jul 2010 14:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to kein cout on Sun, 18 Jul 2010 14:26:09 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<pre><code class="language-cpp">cin&gt;&gt;wert;
</code></pre>
</blockquote>
<p>(Sry, das ich es ins falsche forum gepostet habe..)<br />
Danke für die schnelle antwort. Aber das war nicht der Fehler, hab's bei Frage nur vergessen hinzuschreiben. ich benütze minGW und bei der Kompilation dieser Quelldatei gibt es keine Probleme. Aber wenn das Ausgabefenster erscheint, kann ich die Variable eingeben, die dann ja auch dort erscheint, aber egeal wie oft ich auch enter drücke es erscheint nicht die Antwort, also das 'quadrat(wert)' das ja angezeigt werden sollte.<br />
Tut mir Leid wegen Missverständnis.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928104</guid><dc:creator><![CDATA[diadoros]]></dc:creator><pubDate>Sun, 18 Jul 2010 14:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to kein cout on Sun, 18 Jul 2010 14:35:19 GMT]]></title><description><![CDATA[<p>Das wäre sehr ungewöhnlich, denn das Programm ist in Ordnung. Beendet sich eventuell auch die Konsole, wenn dein Programm beendet wird? Du also die Ausgabe gar nicht mehr siehst, weil alles zu schnell geht?</p>
<p>Falls ja: Dazu gibt es einen Eintrag in den FAQ.</p>
<p>edit: Ich glaube jetzt habe ich es! Gibst du zufällig zuerst den Wert ein, und drückst dann mehrmals Enter? Denk daran, dass dein cin.get <strong>vor</strong> der Eingabe steht! Das heißt die Eingabe für den Wert würde dann an das get gehen, nicht an das <code>cin&gt;&gt;wert;</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928108</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 18 Jul 2010 14:35:19 GMT</pubDate></item><item><title><![CDATA[Reply to kein cout on Sun, 18 Jul 2010 15:38:46 GMT]]></title><description><![CDATA[<p>edit: Ich glaube jetzt habe ich es! Gibst du zufällig zuerst den Wert ein, und drückst dann mehrmals Enter? Denk daran, dass dein cin.get <strong>vor</strong> der Eingabe steht! Das heißt die Eingabe für den Wert würde dann an das get gehen, nicht an das <code>cin&gt;&gt;wert;</code> .[/quote]</p>
<p>Daran lag es.<br />
Danke für die Antwort!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928156</guid><dc:creator><![CDATA[diadoros]]></dc:creator><pubDate>Sun, 18 Jul 2010 15:38:46 GMT</pubDate></item></channel></rss>