<?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[Verbesserungsvorschläge]]></title><description><![CDATA[<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    int ichoice;
    int ichoice1;
    int choice;
    int choice1;
    int choice2;
    int choice3;
    const double PI = 3.14;
    double umfang_kreis;
    double radius_kreis;
    double flaeche_kreis;
    double grundflaeche_pyramide;
    double hoehe_pyramide;
    double volumen_pyramide;
    double seite_dreieck;
    double hoehe_dreieck;
    double flaeche_dreieck;
    double seite_rhomboid;
    double hoehe_rhomboid;
    double flaeche_rhomboid;
    double flaeche_rhombus;
    double hoehe_rhombus;
    double seite_rhombus;
    double flaeche_quadrat;
    double seite_quadrat;
    double laenge_rechteck;
    double breite_rechteck;
    double tiefe_rechteck;
    double volumen_rechteck;
    double flaeche_rechteck;
    double kantenlaenge_wuerfel;
    double volumen_wuerfel;
    float num1;
    float num2;
    float sum1;
    char multi = '*';
    char ccount;
    char cyesno;
    char durch = '/';

    Menu:
         system(&quot;cls&quot;);
         cout &lt;&lt; &quot;Waehle: &quot; &lt;&lt; endl;
         cout &lt;&lt; &quot;1. Mathematik&quot; &lt;&lt; endl;
         cout &lt;&lt; &quot;2. Geometrie&quot; &lt;&lt; endl;
         cout &lt;&lt; &quot;3. Exit&quot; &lt;&lt; endl;

         cin &gt;&gt; ichoice;
         system(&quot;cls&quot;);

         if(ichoice == 1) {goto Mathematik; }
         if(ichoice == 2) {goto Geometrie;}
         if(ichoice == 3) {goto Exit; }
         else {
              cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
              cerr &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
              getchar();
              goto Menu;
              }

    Mathematik:
               system(&quot;cls&quot;);

               cout &lt;&lt; &quot;1 Zahl: &quot;;
               cin &gt;&gt; num1;

               cout &lt;&lt; &quot;Operationszeichen (+, -, *, /):&quot;;
               cin &gt;&gt; ccount;

               cout &lt;&lt; &quot;2 Zahl: &quot;;
               cin &gt;&gt; num2;
               system(&quot;cls&quot;);

               if(ccount =='+') { sum1 = num1 + num2; };
               if(ccount =='-') { sum1 = num1 - num2; };
               if(ccount =='*') { sum1 = num1 * num2; };
               if(ccount =='/') { sum1 = num1 / num2; };

               cout &lt;&lt; &quot;Summe: &quot; &lt;&lt; endl;
               cout &lt;&lt; num1 &lt;&lt; &quot; &quot; &lt;&lt; ccount &lt;&lt; &quot; &quot; &lt;&lt; num2 &lt;&lt; &quot; = &quot; &lt;&lt; sum1 &lt;&lt; endl &lt;&lt; endl;

               cout &lt;&lt; &quot;Nochmal rechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
               cin &gt;&gt; cyesno;
               if(cyesno =='y') {goto Mathematik; }
               if(cyesno =='n') {goto Menu;}
               else { goto confirm_calc; }

    confirm_calc:
                 cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;Nochmal rechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                 cin &gt;&gt; cyesno;
                 if(cyesno =='y') {goto Mathematik; }
                 if(cyesno =='n') {goto Menu;}
                 else { goto confirm_calc; }

    Geometrie:
                 system(&quot;cls&quot;);

                 cout &lt;&lt; &quot;Waehle: &quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;1. Rechteck, Quadrat, Wuerfel&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;2. Rhombus, Rhomboid&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;3. Dreieck, Pyramide&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;4. Kreis, Kugel&quot; &lt;&lt; endl;

                 cin &gt;&gt; ichoice1;
                 system(&quot;cls&quot;);

                 if(ichoice1 == 1){goto Rechteck_Quadrat_Wuerfel; }           
                 if(ichoice1 == 2){goto Rhombus_Rhomboid; }
                 if(ichoice1 == 3){goto Dreieck_Pyramide; }
                 if(ichoice1 == 4){goto Kreis_Kugel; }
                 else {
                       cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                       cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                       getchar();
                       goto Menu;
                       }

    Rechteck_Quadrat_Wuerfel:
                               system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Rechteck&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Flaeche: Quadrat&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;3. Volumen: Rechteck(Quader)&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;4. Volumen: Wuerfel&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice;
                               system(&quot;cls&quot;);

                               if(choice == 1){goto Flaeche_Rechteck; }
                               if(choice == 2){goto Flaeche_Quadrat; }
                               if(choice == 3){goto Volumen_Rechteck; }
                               if(choice == 4){goto Volumen_Wuerfel; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Rechteck:
                      system(&quot;cls&quot;);

                      cout &lt;&lt; &quot;Geben Sie die Länge ein: &quot;;
                      cin &gt;&gt; laenge_rechteck;

                      cout &lt;&lt; &quot;Geben Sie die Breite ein: &quot;;
                      cin &gt;&gt; breite_rechteck;

                      flaeche_rechteck = ( laenge_rechteck * breite_rechteck );

                      cout &lt;&lt; laenge_rechteck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; breite_rechteck &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_rechteck &lt;&lt; &quot;cm2&quot; &lt;&lt; endl &lt;&lt; endl;

                      cout &lt;&lt; &quot;Noch eine Rechtecksflaeche berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Rechteck; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Volumen_Rechteck:
                     system(&quot;cls&quot;);

                     cout &lt;&lt; &quot;Geben Sie die Länge ein: &quot;;
                     cin &gt;&gt; laenge_rechteck;

                     cout &lt;&lt; &quot;Geben Sie die Breite ein: &quot;;
                     cin &gt;&gt; breite_rechteck;

                     cout &lt;&lt; &quot;Geben Sie die Tiefe ein: &quot;;
                     cin &gt;&gt; tiefe_rechteck;

                     volumen_rechteck = ( laenge_rechteck * breite_rechteck * tiefe_rechteck );

                     cout &lt;&lt; laenge_rechteck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; breite_rechteck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; tiefe_rechteck &lt;&lt; &quot; = &quot; &lt;&lt; volumen_rechteck &lt;&lt; &quot;ccm&quot; &lt;&lt; endl &lt;&lt; endl;

                     cout &lt;&lt; &quot;Noch ein Rechtecksvolumen berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Volumen_Rechteck; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; } 

    Flaeche_Quadrat:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie eine Seitenlänge ein: &quot;;
                    cin &gt;&gt; seite_quadrat;

                    flaeche_quadrat = ( seite_quadrat * seite_quadrat );

                    cout &lt;&lt; seite_quadrat &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; seite_quadrat &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_quadrat &lt;&lt; &quot;cm2&quot; &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Quadratflaeche berechnen berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Quadrat; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Volumen_Wuerfel:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie die Kantenlänge ein: &quot;;
                    cin &gt;&gt; kantenlaenge_wuerfel;

                    volumen_wuerfel = ( kantenlaenge_wuerfel * kantenlaenge_wuerfel * kantenlaenge_wuerfel );

                    cout &lt;&lt; kantenlaenge_wuerfel &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; kantenlaenge_wuerfel &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; kantenlaenge_wuerfel &lt;&lt; &quot; = &quot; &lt;&lt; volumen_wuerfel &lt;&lt; &quot;ccm&quot; &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Würfel berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Volumen_Wuerfel; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Rhombus_Rhomboid:
                     system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Rhombus&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Flaeche: Rhomboid&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice1;
                               system(&quot;cls&quot;);

                               if(choice1 == 1){goto Flaeche_Rhombus; }
                               if(choice1 == 2){goto Flaeche_Rhomboid; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Rhombus:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie irgendeine Seite ein: &quot;;
                    cin &gt;&gt; seite_rhombus;

                    cout &lt;&lt; &quot;Geben Sie die Hoehe h ein: &quot;;
                    cin &gt;&gt; hoehe_rhombus;

                    flaeche_rhombus = ( seite_rhombus * hoehe_rhombus );

                    cout &lt;&lt; seite_rhombus &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_rhombus &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_rhombus &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Rhombus berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Rhombus; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Flaeche_Rhomboid:
                     system(&quot;cls&quot;);

                     cout &lt;&lt; &quot;Geben Sie eine Seite ein: &quot;;
                     cin &gt;&gt; seite_rhomboid;

                     cout &lt;&lt; &quot;Geben Sie die dazugehoerige Hoehe ein: &quot;;
                     cin &gt;&gt; hoehe_rhomboid;

                     flaeche_rhomboid = ( seite_rhomboid * hoehe_rhomboid );

                     cout &lt;&lt; seite_rhomboid &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_rhomboid &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_rhomboid &lt;&lt; endl &lt;&lt; endl;

                     cout &lt;&lt; &quot;Noch eine Rhomboid berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Rhomboid; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Dreieck_Pyramide:
                     system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Dreieck&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Volumen: Pyramide&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice2;
                               system(&quot;cls&quot;);

                               if(choice2 == 1){goto Flaeche_Dreieck; }
                               if(choice2 == 2){goto Volumen_Pyramide; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Dreieck:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie eine Seite ein: &quot;;
                    cin &gt;&gt; seite_dreieck;

                    cout &lt;&lt; &quot;Geben Sie die dazugehoerige Hoehe ein: &quot;;
                    cin &gt;&gt; hoehe_dreieck;

                    flaeche_dreieck = ( seite_dreieck * hoehe_dreieck / 2 );

                    cout &lt;&lt; seite_dreieck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_dreieck &lt;&lt; &quot; &quot; &lt;&lt; durch &lt;&lt; &quot; &quot; &lt;&lt; &quot; 2 &quot; &lt;&lt;  &quot; = &quot; &lt;&lt; flaeche_dreieck &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch ein Dreieck berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Dreieck; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Volumen_Pyramide:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie die Grundflaeche ein: &quot;;
                    cin &gt;&gt; grundflaeche_pyramide;

                    cout &lt;&lt; &quot;Geben Sie die Hoehe der Pyramide ein: &quot;;
                    cin &gt;&gt; hoehe_pyramide;

                    volumen_pyramide = ( grundflaeche_pyramide * hoehe_pyramide / 3 );

                    cout &lt;&lt; grundflaeche_pyramide &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_pyramide &lt;&lt; &quot; &quot; &lt;&lt; durch &lt;&lt; &quot; &quot; &lt;&lt; &quot; 2 &quot; &lt;&lt; &quot; = &quot; &lt;&lt; volumen_pyramide &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Pyramide berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Volumen_Pyramide; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Kreis_Kugel:
                system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Kreis&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Umfang: Kreis&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice3;
                               system(&quot;cls&quot;);

                               if(choice3 == 1){goto Flaeche_Kreis; }
                               if(choice3 == 2){goto Umfang_Kreis; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Kreis:
                  system(&quot;cls&quot;);

                  cout &lt;&lt; &quot;Geben Sie den Radius ein: &quot;;
                  cin &gt;&gt; radius_kreis;

                  flaeche_kreis = ( radius_kreis * radius_kreis * PI );

                  cout &lt;&lt; radius_kreis &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; radius_kreis &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; PI &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_kreis &lt;&lt; endl &lt;&lt; endl;

                  cout &lt;&lt; &quot;Noch einen Kreis berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Kreis; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Umfang_Kreis: 
                  system(&quot;cls&quot;);

                  cout &lt;&lt; &quot;Geben Sie den Radius ein: &quot;;
                  cin &gt;&gt; radius_kreis;

                  umfang_kreis = ( radius_kreis * 2 * PI );

                  cout &lt;&lt; radius_kreis &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; 2 &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; PI &lt;&lt; &quot; = &quot; &lt;&lt; umfang_kreis &lt;&lt; endl &lt;&lt; endl;

                  cout &lt;&lt; &quot;Noch einen Umfang berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Umfang_Kreis; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Exit:
                 return 0;
                 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/303479/verbesserungsvorschläge</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 11:08:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/303479.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 May 2012 07:26:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 07:26:42 GMT]]></title><description><![CDATA[<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    int ichoice;
    int ichoice1;
    int choice;
    int choice1;
    int choice2;
    int choice3;
    const double PI = 3.14;
    double umfang_kreis;
    double radius_kreis;
    double flaeche_kreis;
    double grundflaeche_pyramide;
    double hoehe_pyramide;
    double volumen_pyramide;
    double seite_dreieck;
    double hoehe_dreieck;
    double flaeche_dreieck;
    double seite_rhomboid;
    double hoehe_rhomboid;
    double flaeche_rhomboid;
    double flaeche_rhombus;
    double hoehe_rhombus;
    double seite_rhombus;
    double flaeche_quadrat;
    double seite_quadrat;
    double laenge_rechteck;
    double breite_rechteck;
    double tiefe_rechteck;
    double volumen_rechteck;
    double flaeche_rechteck;
    double kantenlaenge_wuerfel;
    double volumen_wuerfel;
    float num1;
    float num2;
    float sum1;
    char multi = '*';
    char ccount;
    char cyesno;
    char durch = '/';

    Menu:
         system(&quot;cls&quot;);
         cout &lt;&lt; &quot;Waehle: &quot; &lt;&lt; endl;
         cout &lt;&lt; &quot;1. Mathematik&quot; &lt;&lt; endl;
         cout &lt;&lt; &quot;2. Geometrie&quot; &lt;&lt; endl;
         cout &lt;&lt; &quot;3. Exit&quot; &lt;&lt; endl;

         cin &gt;&gt; ichoice;
         system(&quot;cls&quot;);

         if(ichoice == 1) {goto Mathematik; }
         if(ichoice == 2) {goto Geometrie;}
         if(ichoice == 3) {goto Exit; }
         else {
              cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
              cerr &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
              getchar();
              goto Menu;
              }

    Mathematik:
               system(&quot;cls&quot;);

               cout &lt;&lt; &quot;1 Zahl: &quot;;
               cin &gt;&gt; num1;

               cout &lt;&lt; &quot;Operationszeichen (+, -, *, /):&quot;;
               cin &gt;&gt; ccount;

               cout &lt;&lt; &quot;2 Zahl: &quot;;
               cin &gt;&gt; num2;
               system(&quot;cls&quot;);

               if(ccount =='+') { sum1 = num1 + num2; };
               if(ccount =='-') { sum1 = num1 - num2; };
               if(ccount =='*') { sum1 = num1 * num2; };
               if(ccount =='/') { sum1 = num1 / num2; };

               cout &lt;&lt; &quot;Summe: &quot; &lt;&lt; endl;
               cout &lt;&lt; num1 &lt;&lt; &quot; &quot; &lt;&lt; ccount &lt;&lt; &quot; &quot; &lt;&lt; num2 &lt;&lt; &quot; = &quot; &lt;&lt; sum1 &lt;&lt; endl &lt;&lt; endl;

               cout &lt;&lt; &quot;Nochmal rechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
               cin &gt;&gt; cyesno;
               if(cyesno =='y') {goto Mathematik; }
               if(cyesno =='n') {goto Menu;}
               else { goto confirm_calc; }

    confirm_calc:
                 cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;Nochmal rechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                 cin &gt;&gt; cyesno;
                 if(cyesno =='y') {goto Mathematik; }
                 if(cyesno =='n') {goto Menu;}
                 else { goto confirm_calc; }

    Geometrie:
                 system(&quot;cls&quot;);

                 cout &lt;&lt; &quot;Waehle: &quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;1. Rechteck, Quadrat, Wuerfel&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;2. Rhombus, Rhomboid&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;3. Dreieck, Pyramide&quot; &lt;&lt; endl;
                 cout &lt;&lt; &quot;4. Kreis, Kugel&quot; &lt;&lt; endl;

                 cin &gt;&gt; ichoice1;
                 system(&quot;cls&quot;);

                 if(ichoice1 == 1){goto Rechteck_Quadrat_Wuerfel; }           
                 if(ichoice1 == 2){goto Rhombus_Rhomboid; }
                 if(ichoice1 == 3){goto Dreieck_Pyramide; }
                 if(ichoice1 == 4){goto Kreis_Kugel; }
                 else {
                       cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                       cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                       getchar();
                       goto Menu;
                       }

    Rechteck_Quadrat_Wuerfel:
                               system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Rechteck&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Flaeche: Quadrat&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;3. Volumen: Rechteck(Quader)&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;4. Volumen: Wuerfel&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice;
                               system(&quot;cls&quot;);

                               if(choice == 1){goto Flaeche_Rechteck; }
                               if(choice == 2){goto Flaeche_Quadrat; }
                               if(choice == 3){goto Volumen_Rechteck; }
                               if(choice == 4){goto Volumen_Wuerfel; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Rechteck:
                      system(&quot;cls&quot;);

                      cout &lt;&lt; &quot;Geben Sie die Länge ein: &quot;;
                      cin &gt;&gt; laenge_rechteck;

                      cout &lt;&lt; &quot;Geben Sie die Breite ein: &quot;;
                      cin &gt;&gt; breite_rechteck;

                      flaeche_rechteck = ( laenge_rechteck * breite_rechteck );

                      cout &lt;&lt; laenge_rechteck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; breite_rechteck &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_rechteck &lt;&lt; &quot;cm2&quot; &lt;&lt; endl &lt;&lt; endl;

                      cout &lt;&lt; &quot;Noch eine Rechtecksflaeche berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Rechteck; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Volumen_Rechteck:
                     system(&quot;cls&quot;);

                     cout &lt;&lt; &quot;Geben Sie die Länge ein: &quot;;
                     cin &gt;&gt; laenge_rechteck;

                     cout &lt;&lt; &quot;Geben Sie die Breite ein: &quot;;
                     cin &gt;&gt; breite_rechteck;

                     cout &lt;&lt; &quot;Geben Sie die Tiefe ein: &quot;;
                     cin &gt;&gt; tiefe_rechteck;

                     volumen_rechteck = ( laenge_rechteck * breite_rechteck * tiefe_rechteck );

                     cout &lt;&lt; laenge_rechteck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; breite_rechteck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; tiefe_rechteck &lt;&lt; &quot; = &quot; &lt;&lt; volumen_rechteck &lt;&lt; &quot;ccm&quot; &lt;&lt; endl &lt;&lt; endl;

                     cout &lt;&lt; &quot;Noch ein Rechtecksvolumen berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Volumen_Rechteck; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; } 

    Flaeche_Quadrat:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie eine Seitenlänge ein: &quot;;
                    cin &gt;&gt; seite_quadrat;

                    flaeche_quadrat = ( seite_quadrat * seite_quadrat );

                    cout &lt;&lt; seite_quadrat &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; seite_quadrat &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_quadrat &lt;&lt; &quot;cm2&quot; &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Quadratflaeche berechnen berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Quadrat; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Volumen_Wuerfel:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie die Kantenlänge ein: &quot;;
                    cin &gt;&gt; kantenlaenge_wuerfel;

                    volumen_wuerfel = ( kantenlaenge_wuerfel * kantenlaenge_wuerfel * kantenlaenge_wuerfel );

                    cout &lt;&lt; kantenlaenge_wuerfel &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; kantenlaenge_wuerfel &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; kantenlaenge_wuerfel &lt;&lt; &quot; = &quot; &lt;&lt; volumen_wuerfel &lt;&lt; &quot;ccm&quot; &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Würfel berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Volumen_Wuerfel; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Rhombus_Rhomboid:
                     system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Rhombus&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Flaeche: Rhomboid&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice1;
                               system(&quot;cls&quot;);

                               if(choice1 == 1){goto Flaeche_Rhombus; }
                               if(choice1 == 2){goto Flaeche_Rhomboid; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Rhombus:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie irgendeine Seite ein: &quot;;
                    cin &gt;&gt; seite_rhombus;

                    cout &lt;&lt; &quot;Geben Sie die Hoehe h ein: &quot;;
                    cin &gt;&gt; hoehe_rhombus;

                    flaeche_rhombus = ( seite_rhombus * hoehe_rhombus );

                    cout &lt;&lt; seite_rhombus &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_rhombus &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_rhombus &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Rhombus berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Rhombus; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Flaeche_Rhomboid:
                     system(&quot;cls&quot;);

                     cout &lt;&lt; &quot;Geben Sie eine Seite ein: &quot;;
                     cin &gt;&gt; seite_rhomboid;

                     cout &lt;&lt; &quot;Geben Sie die dazugehoerige Hoehe ein: &quot;;
                     cin &gt;&gt; hoehe_rhomboid;

                     flaeche_rhomboid = ( seite_rhomboid * hoehe_rhomboid );

                     cout &lt;&lt; seite_rhomboid &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_rhomboid &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_rhomboid &lt;&lt; endl &lt;&lt; endl;

                     cout &lt;&lt; &quot;Noch eine Rhomboid berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Rhomboid; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Dreieck_Pyramide:
                     system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Dreieck&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Volumen: Pyramide&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice2;
                               system(&quot;cls&quot;);

                               if(choice2 == 1){goto Flaeche_Dreieck; }
                               if(choice2 == 2){goto Volumen_Pyramide; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Dreieck:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie eine Seite ein: &quot;;
                    cin &gt;&gt; seite_dreieck;

                    cout &lt;&lt; &quot;Geben Sie die dazugehoerige Hoehe ein: &quot;;
                    cin &gt;&gt; hoehe_dreieck;

                    flaeche_dreieck = ( seite_dreieck * hoehe_dreieck / 2 );

                    cout &lt;&lt; seite_dreieck &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_dreieck &lt;&lt; &quot; &quot; &lt;&lt; durch &lt;&lt; &quot; &quot; &lt;&lt; &quot; 2 &quot; &lt;&lt;  &quot; = &quot; &lt;&lt; flaeche_dreieck &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch ein Dreieck berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Dreieck; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Volumen_Pyramide:
                    system(&quot;cls&quot;);

                    cout &lt;&lt; &quot;Geben Sie die Grundflaeche ein: &quot;;
                    cin &gt;&gt; grundflaeche_pyramide;

                    cout &lt;&lt; &quot;Geben Sie die Hoehe der Pyramide ein: &quot;;
                    cin &gt;&gt; hoehe_pyramide;

                    volumen_pyramide = ( grundflaeche_pyramide * hoehe_pyramide / 3 );

                    cout &lt;&lt; grundflaeche_pyramide &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; hoehe_pyramide &lt;&lt; &quot; &quot; &lt;&lt; durch &lt;&lt; &quot; &quot; &lt;&lt; &quot; 2 &quot; &lt;&lt; &quot; = &quot; &lt;&lt; volumen_pyramide &lt;&lt; endl &lt;&lt; endl;

                    cout &lt;&lt; &quot;Noch eine Pyramide berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Volumen_Pyramide; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Kreis_Kugel:
                system(&quot;cls&quot;);

                               cout &lt;&lt; &quot;1. Flaeche: Kreis&quot; &lt;&lt; endl;
                               cout &lt;&lt; &quot;2. Umfang: Kreis&quot; &lt;&lt; endl;

                               cin &gt;&gt; choice3;
                               system(&quot;cls&quot;);

                               if(choice3 == 1){goto Flaeche_Kreis; }
                               if(choice3 == 2){goto Umfang_Kreis; }
                               else {
                                    cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
                                    cout &lt;&lt; &quot;Druecke eine Taste um fortzufahren&quot; &lt;&lt; endl;
                                    getchar();
                                    goto Menu;
                                    }

    Flaeche_Kreis:
                  system(&quot;cls&quot;);

                  cout &lt;&lt; &quot;Geben Sie den Radius ein: &quot;;
                  cin &gt;&gt; radius_kreis;

                  flaeche_kreis = ( radius_kreis * radius_kreis * PI );

                  cout &lt;&lt; radius_kreis &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; radius_kreis &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; PI &lt;&lt; &quot; = &quot; &lt;&lt; flaeche_kreis &lt;&lt; endl &lt;&lt; endl;

                  cout &lt;&lt; &quot;Noch einen Kreis berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Flaeche_Kreis; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Umfang_Kreis: 
                  system(&quot;cls&quot;);

                  cout &lt;&lt; &quot;Geben Sie den Radius ein: &quot;;
                  cin &gt;&gt; radius_kreis;

                  umfang_kreis = ( radius_kreis * 2 * PI );

                  cout &lt;&lt; radius_kreis &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; 2 &lt;&lt; &quot; &quot; &lt;&lt; multi &lt;&lt; &quot; &quot; &lt;&lt; PI &lt;&lt; &quot; = &quot; &lt;&lt; umfang_kreis &lt;&lt; endl &lt;&lt; endl;

                  cout &lt;&lt; &quot;Noch einen Umfang berechnen?&quot; &lt;&lt; endl &lt;&lt; &quot;[Y/N]: &quot;;
                      cin &gt;&gt; cyesno;
                      if(cyesno =='y') {goto Umfang_Kreis; }
                      if(cyesno =='n') {goto Menu;}
                      else { goto confirm_calc; }

    Exit:
                 return 0;
                 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2211665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211665</guid><dc:creator><![CDATA[Flyerz1934]]></dc:creator><pubDate>Tue, 15 May 2012 07:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 07:55:09 GMT]]></title><description><![CDATA[<p>Alles neu! Haste bei Jürgen Wolf gelernt oder was!? Das ist unglaublich hässlich, Variablennamen immer so lokal wie möglich halten, niemals den Standard-Namensraum ausschütten, keine OS-spezifischen Konsolenbefehle benutzen, und dazu ist das alles noch so imperativ programmiert.....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211671</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 15 May 2012 07:55:09 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 08:05:38 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Alles neu! Haste bei Jürgen Wolf gelernt oder was!? Das ist unglaublich hässlich, Variablennamen immer so lokal wie möglich halten, niemals den Standard-Namensraum ausschütten, keine OS-spezifischen Konsolenbefehle benutzen, und dazu ist das alles noch so imperativ programmiert.....</p>
</blockquote>
<p>Das ist doch alles relativ wurscht.<br />
Das eigentliche Problem ist mMn., dass alles in der main gemacht wird, und anstatt die Funktionalität in Funktionen/Klassen auszulagern, wird alles hinter Sprungmarken (goto) versteckt. Das wird unheimlich unübersichtlich und schwer erweiterbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211673</guid><dc:creator><![CDATA[arghonaut]]></dc:creator><pubDate>Tue, 15 May 2012 08:05:38 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 08:09:11 GMT]]></title><description><![CDATA[<p>Abstraktion! Du wiederholst 20x fast den gleichen Code. Versuche dein Problem in Funktionen zu zerlegen, die du mehrmals benutzen kannst. Optimalerweise<sup>*</sup> hast du in deinem Code keine zwei Zeilen Code jemals doppelt.</p>
<p>Werde den Spaghettisalat mit den ganzen gotos los! Die Zerlegung in Funktionen wird dir dabei helfen. Im Prinzip dürfte jedes goto bei dir stattdessen ein Funktionsaufruf werden, denn deine jetzigen Codeblöcke entsprechen schon fast Funktionen. Vorteil der Funktionen ist aber gewaltig, denn dann ist garantiert, dass die Codeblöcke auch wirklich unanbhängig sind und ein normaler Mensch (d.h. jeder außer dir und du selber in ein bis zwei Wochen) kann das Programm nachvollziehen, ohne neue Hirnwindungen zu bekommen.</p>
<p>Das sind erst einmal die allerwichtigsten zwei Punkte. Wenn das gemacht ist, kann man weitergucken, es gibt noch viel mehr Verbesserungspotential.</p>
<p><sup>*</sup>: Naja, wirklich optimal ist das nicht, aber es ist eine gute Anfängerübung, wenn du dies anstrebst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211674</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 15 May 2012 08:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 09:46:52 GMT]]></title><description><![CDATA[<p>arghonaut schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Alles neu! Haste bei Jürgen Wolf gelernt oder was!? Das ist unglaublich hässlich, Variablennamen immer so lokal wie möglich halten, niemals den Standard-Namensraum ausschütten, keine OS-spezifischen Konsolenbefehle benutzen, und <strong>dazu ist das alles noch so imperativ programmiert.....</strong></p>
</blockquote>
<p>Das ist doch alles relativ wurscht.<br />
Das eigentliche Problem ist mMn., dass alles in der main gemacht wird, und anstatt die Funktionalität in <strong>Funktionen/Klassen auszulagern</strong>, wird alles hinter Sprungmarken (goto) versteckt. Das wird unheimlich unübersichtlich und schwer erweiterbar.</p>
</blockquote>
<p>Hmmm? Das war ein Punkt von mir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211697</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 15 May 2012 09:46:52 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:14:51 GMT]]></title><description><![CDATA[<p>Vielen Dank für die Vorschläge.</p>
<p>Nun ich mach das Programm für die Schule als Projekt.<br />
Öhm ich übe das Ganze mit einem Buch (jetzt lerne ich C++ , Dirk Louis)<br />
Ausserdem werde ich das alles noch in der Ausbildung lernen ;).</p>
<p>Das Buch hab ich noch ned fertig deshalb kenn ich das mit den Funktionen nicht.</p>
<p>Ich werde das sicher noch versuchen zu ändern.<br />
Könnt ihr mir sagen wie man hoch 2 macht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211710</guid><dc:creator><![CDATA[Flyerz1934]]></dc:creator><pubDate>Tue, 15 May 2012 10:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:16:52 GMT]]></title><description><![CDATA[<p>p ist zwei hoch x<br />
als double:<br />
double p=std::pow(2,x);<br />
als int:<br />
int p=1&lt;&lt;x;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211712</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Tue, 15 May 2012 10:16:52 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:19:16 GMT]]></title><description><![CDATA[<p>Wie wäre es allgemein mit <code>x*x</code> ?</p>
<p>~edit: so ein kurzer Satz, so viele Rechtschreibfehler, *schäm*.~</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211713</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 15 May 2012 10:19:16 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:21:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/106">@volkard</a>: Er will doch x^2, nicht 2^x.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211714</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Tue, 15 May 2012 10:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:22:52 GMT]]></title><description><![CDATA[<p>Flyerz1934 schrieb:</p>
<blockquote>
<p>Das Buch hab ich noch ned fertig deshalb kenn ich das mit den Funktionen nicht.</p>
</blockquote>
<p>Draußen scheint die Sonne. Setz eine Sonnebrille auf und geh mit dem Buch in den Garten und hau es Dir flugs in den Kopf. Ganz oberflächlich, so daß Du es bis morgen durch hast.</p>
<p>Und dann mach weiter wie gehabt, aber mit einem besseren Blick fürs Große. Im Endeffekt sparst Du damit sicherlich einiges an Zeit. (Benutze für dieses Projekt keine selbergebauten Klassen.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211715</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Tue, 15 May 2012 10:22:52 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:31:01 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Hmmm? Das war ein Punkt von mir.</p>
</blockquote>
<p>Auch ohne goto wäre das Programm noch imperativ gehalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211717</guid><dc:creator><![CDATA[arghonaut]]></dc:creator><pubDate>Tue, 15 May 2012 10:31:01 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:31:09 GMT]]></title><description><![CDATA[<p>Aber wenn ich das Buch nur oberflächlich lese (d.h ohne üben), habe ich es morgen oder übermorgen schon wieder vergessen <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/2211718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211718</guid><dc:creator><![CDATA[Flyerz1934]]></dc:creator><pubDate>Tue, 15 May 2012 10:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:33:12 GMT]]></title><description><![CDATA[<p>Volkard!!! Du bist zurück!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>@argonhaut: hab ich das gesagt? Ich hab einfach gesagt, es wurde imperativ programmiert, mehr nicht (auch nicht woraus ich das schließe).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211719</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211719</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 15 May 2012 10:33:12 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 10:49:24 GMT]]></title><description><![CDATA[<p>Irgendwie erinnert mich der Code mit den vielen goto an früheres BASIC (vor 1980?), das auch noch keine Funktionen kannte. Was soll man daran verbessern? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> Wegschmeissen und ohne goto neu machen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211726</guid><dc:creator><![CDATA[berniebutt]]></dc:creator><pubDate>Tue, 15 May 2012 10:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 11:35:11 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>hab ich das gesagt? Ich hab einfach gesagt, es wurde imperativ programmiert, mehr nicht (auch nicht woraus ich das schließe).</p>
</blockquote>
<p>Selbst wenn du die goto durch Funktionen ersetzt, bleibt das Programm eine Aneinanderreihung von &quot;Anweisungen&quot; -&gt; immer noch imperativ. Demnach hast du nicht das selbe ausgedrückt. Und selbst wenn es das selbe gewesen wäre, der OP kann mit &quot;kein goto&quot; sicher mehr anfangen als mit &quot;das ist imperativ programmiert -&gt; böse&quot;.</p>
<p>Aber diese Nebendiskussion ist unnötig, da mittlerweile das goto schon so oft angemeckert wurde, dass es klar ist, was zuerst geändert werden sollte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211735</guid><dc:creator><![CDATA[arghonaut]]></dc:creator><pubDate>Tue, 15 May 2012 11:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Verbesserungsvorschläge on Tue, 15 May 2012 13:33:03 GMT]]></title><description><![CDATA[<p>Flyerz1934 schrieb:</p>
<blockquote>
<p>Aber wenn ich das Buch nur oberflächlich lese (d.h ohne üben), habe ich es morgen oder übermorgen schon wieder vergessen <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>
</blockquote>
<p>Du sollst es überfliegen, damit Du fürderhin in die richtigen Richtungen vorausüberlegst. Und dann da weiterlesen, wo Du gerade bist. Mit Üben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2211760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2211760</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Tue, 15 May 2012 13:33:03 GMT</pubDate></item></channel></rss>