<?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[Thema menüauswahl Fehler nicht gefunden]]></title><description><![CDATA[<p>Ich komm nicht auf den Fehler den ich hier reingebaut habe</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main()
{
    float zahl1;
    float zahl2;
    float ergebnis;
    char wahl;

    cout&lt;&lt;&quot;1  Berechnung der Summe&quot;&lt;&lt;&quot;\n&quot;;
    cout&lt;&lt;&quot;2  Berechnung des Produktes&quot;&lt;&lt;&quot;\n&quot;;
    cout&lt;&lt;&quot;3  Berechnung des Durchschnittes&quot;&lt;&lt;&quot;\n&quot;;
    cin&gt;&gt;wahl;
    switch(wahl){
    case '1':
        cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;
        cin&gt;&gt;zahl1;
        cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;
        cin&gt;&gt;zahl2;
        ergebnis=zahl1+zahl2;
        cout&lt;&lt;&quot;Die Summe lautet: &quot; &lt;&lt;ergebnis&lt;&lt;;
        break;

    case '2':
        cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;
        cin&gt;&gt;zahl1;
        cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;
        cin&gt;&gt;zahl2;
        ergebnis=(zahl1*zahl2);
        cout&lt;&lt;&quot;Das Produkt lautet: &quot;&lt;&lt;ergebnis&lt;&lt;;
        break;

    case '3':
    cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;
        cin&gt;&gt;zahl1;
        cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;
        cin&gt;&gt;zahl2;
        ergebnis=(zahl1*zahl2)/2;
        cout&lt;&lt;&quot;Der Durchschnitt lautet: &quot;&lt;&lt;ergebnis&lt;&lt;;
        break;

    default: cout&lt;&lt;&quot;Unbekannter Fall&quot;;
}
    return 0;
}
</code></pre>
<p>edit durch SeppJ: cpp-Tags zugefügt.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/278883/thema-menüauswahl-fehler-nicht-gefunden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 23:18:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/278883.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Dec 2010 18:43:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Thema menüauswahl Fehler nicht gefunden on Tue, 14 Dec 2010 18:47:37 GMT]]></title><description><![CDATA[<p>Ich komm nicht auf den Fehler den ich hier reingebaut habe</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main()
{
    float zahl1;
    float zahl2;
    float ergebnis;
    char wahl;

    cout&lt;&lt;&quot;1  Berechnung der Summe&quot;&lt;&lt;&quot;\n&quot;;
    cout&lt;&lt;&quot;2  Berechnung des Produktes&quot;&lt;&lt;&quot;\n&quot;;
    cout&lt;&lt;&quot;3  Berechnung des Durchschnittes&quot;&lt;&lt;&quot;\n&quot;;
    cin&gt;&gt;wahl;
    switch(wahl){
    case '1':
        cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;
        cin&gt;&gt;zahl1;
        cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;
        cin&gt;&gt;zahl2;
        ergebnis=zahl1+zahl2;
        cout&lt;&lt;&quot;Die Summe lautet: &quot; &lt;&lt;ergebnis&lt;&lt;;
        break;

    case '2':
        cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;
        cin&gt;&gt;zahl1;
        cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;
        cin&gt;&gt;zahl2;
        ergebnis=(zahl1*zahl2);
        cout&lt;&lt;&quot;Das Produkt lautet: &quot;&lt;&lt;ergebnis&lt;&lt;;
        break;

    case '3':
    cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;
        cin&gt;&gt;zahl1;
        cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;
        cin&gt;&gt;zahl2;
        ergebnis=(zahl1*zahl2)/2;
        cout&lt;&lt;&quot;Der Durchschnitt lautet: &quot;&lt;&lt;ergebnis&lt;&lt;;
        break;

    default: cout&lt;&lt;&quot;Unbekannter Fall&quot;;
}
    return 0;
}
</code></pre>
<p>edit durch SeppJ: cpp-Tags zugefügt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1994603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1994603</guid><dc:creator><![CDATA[tobifeli]]></dc:creator><pubDate>Tue, 14 Dec 2010 18:47:37 GMT</pubDate></item><item><title><![CDATA[Reply to Thema menüauswahl Fehler nicht gefunden on Tue, 14 Dec 2010 18:49:13 GMT]]></title><description><![CDATA[<p>Was ist denn der Fehler?</p>
<p>Und verwende bitte die cpp-Tags. Sonst lesen sich 90% der Leute deinen Beitrag gar nicht erst durch. Ich habe dies jetzt ausnahmsweise mal für dich bei deinem Beitrag gemacht, aber in Zukunft mach das bitte selbstständig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1994606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1994606</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 14 Dec 2010 18:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to Thema menüauswahl Fehler nicht gefunden on Tue, 14 Dec 2010 18:47:43 GMT]]></title><description><![CDATA[<p>Sorry ich habe meinen Fehler selber gefunden!!!</p>
<p>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int main()<br />
{<br />
float zahl1;<br />
float zahl2;<br />
float ergebnis;<br />
char wahl;</p>
<p>cout&lt;&lt;&quot;1 Berechnung der Summe&quot;&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;2 Berechnung des Produktes&quot;&lt;&lt;&quot;\n&quot;;<br />
cout&lt;&lt;&quot;3 Berechnung des Durchschnittes&quot;&lt;&lt;&quot;\n&quot;;<br />
cin&gt;&gt;wahl;<br />
switch(wahl){<br />
case '1':<br />
cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;<br />
cin&gt;&gt;zahl1;<br />
cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;<br />
cin&gt;&gt;zahl2;<br />
ergebnis=zahl1+zahl2;<br />
cout&lt;&lt;&quot;Die Summe lautet: &quot; &lt;&lt;ergebnis;<br />
break;</p>
<p>case '2':<br />
cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;<br />
cin&gt;&gt;zahl1;<br />
cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;<br />
cin&gt;&gt;zahl2;<br />
ergebnis=(zahl1*zahl2);<br />
cout&lt;&lt;&quot;Das Produkt lautet: &quot;&lt;&lt;ergebnis;<br />
break;</p>
<p>case '3':<br />
cout&lt;&lt;&quot;Bitte geben Sie die erste Zahl ein: &quot;;<br />
cin&gt;&gt;zahl1;<br />
cout&lt;&lt;&quot;Bitte geben Sie die zweite Zahl ein: &quot;;<br />
cin&gt;&gt;zahl2;<br />
ergebnis=(zahl1*zahl2)/2;<br />
cout&lt;&lt;&quot;Der Durchschnitt lautet: &quot;&lt;&lt;ergebnis;<br />
break;</p>
<p>default: cout&lt;&lt;&quot;Unbekannter Fall&quot;;<br />
}<br />
return 0;<br />
}[/quote]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1994608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1994608</guid><dc:creator><![CDATA[tobifeli]]></dc:creator><pubDate>Tue, 14 Dec 2010 18:47:43 GMT</pubDate></item></channel></rss>