<?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[[erledigt]Totale Noobfrage: Wo ist hier der Fehler??]]></title><description><![CDATA[<p>hallo,<br />
ich weiß, dass das jetzt eine dumme frage ist, aber ich komme da nicht weiter.<br />
Also: Wo sind in diesem Code die Fehler? Code::Blocks zeigt 3 an.</p>
<pre><code>#include&lt;iostream&gt;
    using namespace std;

    int main()
    {
        int a;
        int b;
        int c;
        int z;
        char mode;
        z=2;
        cout&lt;&lt;&quot;Willkommen!!/n&quot;;
        cout&lt;&lt;&quot;Wenn Sie das Volumen eines Quaders (Würfels) ausrechnen wollen drücken Sie bitte V/n&quot;;
        cout&lt;&lt;&quot;Wenn Sie die Oberfläche eines Quaders Würfels ausrechnen wollen drücken Sie bitte O/n&quot;;
        cin&gt;&gt;mode;
        if(mode='V','v')
        {
            cout&lt;&lt;&quot;Bitte Seite a eingeben\n&quot;;
            cin&gt;&gt;a;
            cout&lt;&lt;&quot;Bitte Seite b eingeben\n&quot;;
            cin&gt;&gt;b;
            cout&lt;&lt;&quot;Bitte Seite c eingeben\n&quot;;
            cin&gt;&gt;c;
            cout&lt;&lt;&quot;Das Volumen ist :  &quot;&lt;&lt;a*b*c&lt;&lt;&quot;cm³ \n&quot;;
            cout&lt;&lt;&quot;Auf Wiedersehen\n&quot;;
            return 0;
        }
        if (mode='O', 'o')
        {
            cout&lt;&lt;&quot;Bitte Seite a eingeben\n&quot;;
            cin&gt;&gt;a;
            cout&lt;&lt;&quot;Bitte Seite b eingeben\n&quot;;
            cin&gt;&gt;b;
            cout&lt;&lt; &quot;Bitte Seite c eingeben\n&quot;;
            cin&gt;&gt;c;
            cout&lt;&lt;&quot;Die Oberfläche beträgt : &quot; &lt;&lt;(a*b+a*c+b*c)*z&gt;&gt;  &quot;cm²\n&quot;;
            cout&lt;&lt;&quot;Auf Wiedersehen\n&quot;;
            return = 0;
            }
</code></pre>
<p>Danke<br />
simon</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/165105/erledigt-totale-noobfrage-wo-ist-hier-der-fehler</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 04:54:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/165105.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Nov 2006 14:47:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [erledigt]Totale Noobfrage: Wo ist hier der Fehler?? on Wed, 15 Nov 2006 17:58:51 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich weiß, dass das jetzt eine dumme frage ist, aber ich komme da nicht weiter.<br />
Also: Wo sind in diesem Code die Fehler? Code::Blocks zeigt 3 an.</p>
<pre><code>#include&lt;iostream&gt;
    using namespace std;

    int main()
    {
        int a;
        int b;
        int c;
        int z;
        char mode;
        z=2;
        cout&lt;&lt;&quot;Willkommen!!/n&quot;;
        cout&lt;&lt;&quot;Wenn Sie das Volumen eines Quaders (Würfels) ausrechnen wollen drücken Sie bitte V/n&quot;;
        cout&lt;&lt;&quot;Wenn Sie die Oberfläche eines Quaders Würfels ausrechnen wollen drücken Sie bitte O/n&quot;;
        cin&gt;&gt;mode;
        if(mode='V','v')
        {
            cout&lt;&lt;&quot;Bitte Seite a eingeben\n&quot;;
            cin&gt;&gt;a;
            cout&lt;&lt;&quot;Bitte Seite b eingeben\n&quot;;
            cin&gt;&gt;b;
            cout&lt;&lt;&quot;Bitte Seite c eingeben\n&quot;;
            cin&gt;&gt;c;
            cout&lt;&lt;&quot;Das Volumen ist :  &quot;&lt;&lt;a*b*c&lt;&lt;&quot;cm³ \n&quot;;
            cout&lt;&lt;&quot;Auf Wiedersehen\n&quot;;
            return 0;
        }
        if (mode='O', 'o')
        {
            cout&lt;&lt;&quot;Bitte Seite a eingeben\n&quot;;
            cin&gt;&gt;a;
            cout&lt;&lt;&quot;Bitte Seite b eingeben\n&quot;;
            cin&gt;&gt;b;
            cout&lt;&lt; &quot;Bitte Seite c eingeben\n&quot;;
            cin&gt;&gt;c;
            cout&lt;&lt;&quot;Die Oberfläche beträgt : &quot; &lt;&lt;(a*b+a*c+b*c)*z&gt;&gt;  &quot;cm²\n&quot;;
            cout&lt;&lt;&quot;Auf Wiedersehen\n&quot;;
            return = 0;
            }
</code></pre>
<p>Danke<br />
simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175274</guid><dc:creator><![CDATA[chaeron]]></dc:creator><pubDate>Wed, 15 Nov 2006 17:58:51 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt]Totale Noobfrage: Wo ist hier der Fehler?? on Wed, 15 Nov 2006 14:49:39 GMT]]></title><description><![CDATA[<p>Deine if's sind falsch (korrekt wäre: if (mode == 'V' || mode == 'v') { } ) und du schreibst fälschlicherweise return = 0; (dem kann man nichts zuweisen) Wäre nett, wenn du die Fehler nächstes mal auch mit angeben würdest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175276</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Wed, 15 Nov 2006 14:49:39 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt]Totale Noobfrage: Wo ist hier der Fehler?? on Wed, 15 Nov 2006 15:18:09 GMT]]></title><description><![CDATA[<p>Danke.</p>
<p>jetzt kommen noch 2 Fehler, und zwar:<br />
&quot;no match for operator&lt;&lt; in (+std::char_traits......................&quot; Zeile 9<br />
&quot;expectet '}' at end of input&quot; Zeile 10</p>
<pre><code>if (mode == 'O' || mode == 'o')
        {
            cout&lt;&lt;&quot;Bitte Seite a eingeben\n&quot;;
            cin&gt;&gt;a;
            cout&lt;&lt;&quot;Bitte Seite b eingeben\n&quot;;
            cin&gt;&gt;b;
            cout&lt;&lt; &quot;Bitte Seite c eingeben\n&quot;;
            cin&gt;&gt;c;
            cout&lt;&lt;&quot;Die Oberfläche beträgt : &quot; &lt;&lt;(a*b+a*c+b*c)*z&gt;&gt;  &quot;cm²\n&quot;;
            cout&lt;&lt;&quot;Auf Wiedersehen\n&quot;;
            return 0;
            }
</code></pre>
<p>simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175305</guid><dc:creator><![CDATA[chaeron]]></dc:creator><pubDate>Wed, 15 Nov 2006 15:18:09 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt]Totale Noobfrage: Wo ist hier der Fehler?? on Wed, 15 Nov 2006 15:38:48 GMT]]></title><description><![CDATA[<p>cout&lt;&lt;&quot;Die Oberfläche beträgt : &quot; &lt;&lt;(a*b+a*c+b*c)*z&gt;&gt; &quot;cm²\n&quot;;<br />
cout&lt;&lt;&quot;Die Oberfläche beträgt : &quot; &lt;&lt;(a*b+a*c+b*c)*z&lt;&lt; &quot;cm²\n&quot;;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175322</guid><dc:creator><![CDATA[Redhead]]></dc:creator><pubDate>Wed, 15 Nov 2006 15:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt]Totale Noobfrage: Wo ist hier der Fehler?? on Wed, 15 Nov 2006 17:58:17 GMT]]></title><description><![CDATA[<p>Danke, jetzt gehts <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="😉"
    /><br />
mfG<br />
simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175410</guid><dc:creator><![CDATA[chaeron]]></dc:creator><pubDate>Wed, 15 Nov 2006 17:58:17 GMT</pubDate></item></channel></rss>