<?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[[HELP] Programm fertig leider viele Bugs.]]></title><description><![CDATA[<p>Also das Program ist fertig nur Bugs sind drinne. ICh brauche leider eure hilfe um diese Bugs wech zu bekommen.<br />
Programm: <a href="http://hp-center.net/mose/Papa-Baer_Modul_1.exe" rel="nofollow">http://hp-center.net/mose/Papa-Baer_Modul_1.exe</a><br />
Mit dem Programm kann man par Mathe sachen berechnen. ^^<br />
Wenn ihrdas Programm startet werdet ihr sehr schnelld ie fehler finden.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
#include&lt;string&gt;
      int main()
{

      string figure[]={&quot;das Rechteck&quot;,&quot;das Parallelogramm&quot;,&quot;das Dreieck&quot;,&quot;das Trapez&quot;,
                    &quot;den Kreis&quot;,&quot;den Sektor&quot;,&quot; den Quader&quot;,&quot;das Prisma&quot;,&quot;den Zylinder&quot;,
                    &quot;die Pyramide&quot;,&quot;den Kegel&quot;,&quot;die Kugel&quot;};
      int Menue1;
      int Menue2;
      int Menue3;
      cout&lt;&lt;&quot;******************************************************************************&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;*                       Papa_Baer Modul 1# (Geometrie)                       *&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;******************************************************************************&quot;&lt;&lt;endl;

      cout&lt;&lt;&quot;[0]Beenden  &quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[1]Rechteck&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[2]Parallelogramm&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[3]Dreieck&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[4]Trapez&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[5]Kreis: Flaecheninhalt&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[6]Kreisausschnit (Sektor)&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;______________________________________________________________________________&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[7]Quader&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[8]Prisma(gerades)&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[9]Zylinder&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[10]Pyramide&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[11]Kegel&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[12]Kugel&quot;&lt;&lt;endl;
       cin&gt;&gt;Menue1;
       if(Menue1==0)
       return 0;

          cout&lt;&lt;Menue1&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben &quot;&lt;&lt;figure[Menue1-1]&lt;&lt;&quot; gewaehlt.&quot;&lt;&lt;endl;
       switch(Menue1)
{
{
       case 1:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=a*b&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+a+b+b&quot;&lt;&lt;endl;

}
               cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                 cin&gt;&gt;Menue2;
                  if(Menue2==0)
                   return 0;

                  float a;
                  float b;
                  switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt: A=a*b&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang: U=a+a+b+b&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

{                         cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;b;
}
                        switch(Menue3)
{
                        case 1:
                         cout&lt;&lt;&quot;Der Flaecheninhalt ist: &quot;&lt;&lt;(a*b)&lt;&lt;endl;
                        break;
                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
       case 2:
           cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
           cout&lt;&lt;&quot;Flaecheninhalt:F=g*h&quot;&lt;&lt;endl;
           cout&lt;&lt;&quot;Umfang: U=a+a+b+b&quot;&lt;&lt;endl;

}
{
               cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                 cin&gt;&gt;Menue2;
                  if(Menue2==0)
                   return 0;
}
                  float a;
                  float b;
                  float h;
                  switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=g*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=a+a+b+b&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;b;
}
                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie die Hoehe an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;h;
                          cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a*b*h)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{

                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;

}
}
       switch(Menue1)
{
{
         case 3:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h/2&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+b+c&quot;&lt;&lt;endl;

}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float a;
                  float b;
                  float c;
                  float h;
                  const int zwei=2;
                  switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=g*h/2&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=a+b+c&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;b;
}
                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie die Hoehe an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;h;
                           cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a*b*h/zwei)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{
                        case 2:
                        cout&lt;&lt;&quot;Bitte geben Sie c an.&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+b+c)&lt;&lt;endl;
                        break;

}
}
       switch(Menue1)
{
{
       case 4:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=a+c/2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+b+c+d&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float a;
                  float b;
                  float c;
                  float d;
                  float h;
                  const int zwei=2;
                  switch(Menue2)

                  case 1:
{                     cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=a+c/2*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=U=a+b+c+d&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

{
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;a;
}
                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie Faktor c an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;c;
                          cout&lt;&lt;&quot;Bitte geben Sie die Höhe an&quot;&lt;&lt;endl;
                                cin&gt;&gt;h;
                          cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a+c/2*h)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{

                        case 2:
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor c an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;c;
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor d an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;d;
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
          case 5:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=Pi*r*r=Pi*d*d/4&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*d=2*Pi*r&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float r;
                  float d;
                  const float Pi=3.125;
                  switch(Menue2)
{
                   case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=Pi*r*r=Pi*d*d/4&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=Pi*d=2*Pi*r&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie den Radius an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;r;
                           cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(Pi*r*r)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{
                        case 2:
                        cout&lt;&lt;&quot;Bitte geben Sie den Durchmesser an.&quot;&lt;&lt;endl;
                               cin&gt;&gt;d;
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(Pi*d)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
       case 6:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Kreisausschnitt:A=Pi*r*r*Alpha/360*360&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*r*r*Alpha/180*180&quot;&lt;&lt;endl;

}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
              float r;
              float Alpha;
              const float Pi=3.125;
              switch(Menue2)
{
                     case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=Pi*r*r*Alpha/360*360&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=Pi*r*r*Alpha/180&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

{
                          cout&lt;&lt;&quot;Bitte geben Sie den Radius an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;r;
                          cout&lt;&lt;&quot;Bitte geben Sie Alpha an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;Alpha;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(Pi*r*r*Alpha/360*360)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{
                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(Pi*r*r*Alpha/180)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
       case 7:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V= a*b*c&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=2ab+2ac+2bc&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float a;
                  float b;
                  float c;

{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=a*b*c&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=2ab+2ac+2bc&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor a an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;a;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor b an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;b;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor c an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;c;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(a*b*c)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(a*b+a*b+a*c+a*c+b*c+b*c)&lt;&lt;endl;
                         break;
}
}

       switch(Menue1)
{
{
       case 8:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=G*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=2G+M&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float g;
                  float h;
                  float u;

{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=G*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=2G+M&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                       cout&lt;&lt;&quot;Grundfläche  &quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;____________________________&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor g an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;g;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                       cout&lt;&lt;&quot;Mantelfläche&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;___________________________&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor u an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;u;

}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(g*h/2*(u*h))&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(g*h/2*g*h/2+u*h)&lt;&lt;endl;
                         break;

}
}

       switch(Menue1)
{
{
       case 9:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=Pi*r*r*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=M+2G=2*Pi*r*h+2*Pi*r*r&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float h;
               float r;
               const float Pi=3.125;
               switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=Pi*r*r*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=M+2G=2*Pi*r*h+2*Pi*r*r&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(Pi*r*r*h)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(2*Pi*r*h+2*Pi*r*r)&lt;&lt;endl;
                         break;

}
}
        switch(Menue1)
{
{
       case 10:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=1/3*G*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=G+M&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float a;
               float h;
               float hs;

{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=1/3*G*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=G+M&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor a an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;a;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor hs an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;hs;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(1/3*a*a*h)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(a*a+a*hs/2)&lt;&lt;endl;
                         break;

}
}
        switch(Menue1)
{
{
       case 11:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=1/3G*h=1/3*Pi*r*r*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=G+M=Pe*r*r+Pi*r*S&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Mantelflaeche: M=Pi*r*s&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float r;
               float h;
               float s;
               const float Pi=3.125;
               switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=1/3G*h=1/3*Pi*r*r*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=G+M=Pi*r*r+Pi*r*S&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[3]Mantelflaeche: M=Pi*r*s&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor s an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;s;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(1/3*Pi*r*r*h)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(Pi*r*r+Pi*r*s)&lt;&lt;endl;
                         break;
}
                     switch(Menue3)
{
                        case 3:
                           cout&lt;&lt;&quot;Die Mantelflaeche ist: &quot;&lt;&lt;(Pi*r*s)&lt;&lt;endl;
                         break;
}
}
        switch(Menue1)
{
{
       case 12:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=4/3*Pi*r*r*r&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=4*Pi*r*r&quot;&lt;&lt;endl;

}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float r;
               const float Pi=3.125;
                switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=4/3*Pi*r*r*r&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=4*Pi*r*r&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;

}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(4/3*Pi*r*r*r)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(4*Pi*r*r)&lt;&lt;endl;
                         break;
}
};

      std::cin.clear();
      std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());
      std::cin.get();

      return 0;
     }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/119809/help-programm-fertig-leider-viele-bugs</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 05:45:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/119809.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Sep 2005 18:50:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 18:50:58 GMT]]></title><description><![CDATA[<p>Also das Program ist fertig nur Bugs sind drinne. ICh brauche leider eure hilfe um diese Bugs wech zu bekommen.<br />
Programm: <a href="http://hp-center.net/mose/Papa-Baer_Modul_1.exe" rel="nofollow">http://hp-center.net/mose/Papa-Baer_Modul_1.exe</a><br />
Mit dem Programm kann man par Mathe sachen berechnen. ^^<br />
Wenn ihrdas Programm startet werdet ihr sehr schnelld ie fehler finden.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
#include&lt;string&gt;
      int main()
{

      string figure[]={&quot;das Rechteck&quot;,&quot;das Parallelogramm&quot;,&quot;das Dreieck&quot;,&quot;das Trapez&quot;,
                    &quot;den Kreis&quot;,&quot;den Sektor&quot;,&quot; den Quader&quot;,&quot;das Prisma&quot;,&quot;den Zylinder&quot;,
                    &quot;die Pyramide&quot;,&quot;den Kegel&quot;,&quot;die Kugel&quot;};
      int Menue1;
      int Menue2;
      int Menue3;
      cout&lt;&lt;&quot;******************************************************************************&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;*                       Papa_Baer Modul 1# (Geometrie)                       *&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;******************************************************************************&quot;&lt;&lt;endl;

      cout&lt;&lt;&quot;[0]Beenden  &quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[1]Rechteck&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[2]Parallelogramm&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[3]Dreieck&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[4]Trapez&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[5]Kreis: Flaecheninhalt&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[6]Kreisausschnit (Sektor)&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;______________________________________________________________________________&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[7]Quader&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[8]Prisma(gerades)&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[9]Zylinder&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[10]Pyramide&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[11]Kegel&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[12]Kugel&quot;&lt;&lt;endl;
       cin&gt;&gt;Menue1;
       if(Menue1==0)
       return 0;

          cout&lt;&lt;Menue1&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben &quot;&lt;&lt;figure[Menue1-1]&lt;&lt;&quot; gewaehlt.&quot;&lt;&lt;endl;
       switch(Menue1)
{
{
       case 1:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=a*b&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+a+b+b&quot;&lt;&lt;endl;

}
               cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                 cin&gt;&gt;Menue2;
                  if(Menue2==0)
                   return 0;

                  float a;
                  float b;
                  switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt: A=a*b&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang: U=a+a+b+b&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

{                         cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;b;
}
                        switch(Menue3)
{
                        case 1:
                         cout&lt;&lt;&quot;Der Flaecheninhalt ist: &quot;&lt;&lt;(a*b)&lt;&lt;endl;
                        break;
                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
       case 2:
           cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
           cout&lt;&lt;&quot;Flaecheninhalt:F=g*h&quot;&lt;&lt;endl;
           cout&lt;&lt;&quot;Umfang: U=a+a+b+b&quot;&lt;&lt;endl;

}
{
               cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                 cin&gt;&gt;Menue2;
                  if(Menue2==0)
                   return 0;
}
                  float a;
                  float b;
                  float h;
                  switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=g*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=a+a+b+b&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;b;
}
                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie die Hoehe an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;h;
                          cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a*b*h)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{

                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;

}
}
       switch(Menue1)
{
{
         case 3:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h/2&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+b+c&quot;&lt;&lt;endl;

}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float a;
                  float b;
                  float c;
                  float h;
                  const int zwei=2;
                  switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=g*h/2&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=a+b+c&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;b;
}
                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie die Hoehe an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;h;
                           cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a*b*h/zwei)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{
                        case 2:
                        cout&lt;&lt;&quot;Bitte geben Sie c an.&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+b+c)&lt;&lt;endl;
                        break;

}
}
       switch(Menue1)
{
{
       case 4:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=a+c/2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+b+c+d&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float a;
                  float b;
                  float c;
                  float d;
                  float h;
                  const int zwei=2;
                  switch(Menue2)

                  case 1:
{                     cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=a+c/2*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=U=a+b+c+d&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

{
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                                 cin&gt;&gt;a;
}
                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie Faktor c an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;c;
                          cout&lt;&lt;&quot;Bitte geben Sie die Höhe an&quot;&lt;&lt;endl;
                                cin&gt;&gt;h;
                          cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a+c/2*h)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{

                        case 2:
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor c an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;c;
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor d an&quot;&lt;&lt;endl;
                                 cin&gt;&gt;d;
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
          case 5:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=Pi*r*r=Pi*d*d/4&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*d=2*Pi*r&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float r;
                  float d;
                  const float Pi=3.125;
                  switch(Menue2)
{
                   case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=Pi*r*r=Pi*d*d/4&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=Pi*d=2*Pi*r&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

                        switch(Menue3)
{
                        case 1:
                          cout&lt;&lt;&quot;Bitte geben Sie den Radius an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;r;
                           cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(Pi*r*r)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{
                        case 2:
                        cout&lt;&lt;&quot;Bitte geben Sie den Durchmesser an.&quot;&lt;&lt;endl;
                               cin&gt;&gt;d;
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(Pi*d)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
       case 6:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Kreisausschnitt:A=Pi*r*r*Alpha/360*360&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*r*r*Alpha/180*180&quot;&lt;&lt;endl;

}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
              float r;
              float Alpha;
              const float Pi=3.125;
              switch(Menue2)
{
                     case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt:A=Pi*r*r*Alpha/360*360&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang:U=Pi*r*r*Alpha/180&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;

{
                          cout&lt;&lt;&quot;Bitte geben Sie den Radius an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;r;
                          cout&lt;&lt;&quot;Bitte geben Sie Alpha an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;Alpha;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(Pi*r*r*Alpha/360*360)&lt;&lt;endl;
                        break;
}
                        switch(Menue3)
{
                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(Pi*r*r*Alpha/180)&lt;&lt;endl;
                        break;

}
}

       switch(Menue1)
{
{
       case 7:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V= a*b*c&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=2ab+2ac+2bc&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float a;
                  float b;
                  float c;

{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=a*b*c&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=2ab+2ac+2bc&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor a an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;a;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor b an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;b;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor c an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;c;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(a*b*c)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(a*b+a*b+a*c+a*c+b*c+b*c)&lt;&lt;endl;
                         break;
}
}

       switch(Menue1)
{
{
       case 8:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=G*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=2G+M&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
                  float g;
                  float h;
                  float u;

{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=G*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=2G+M&quot;&lt;&lt;endl;
}
                      cin&gt;&gt;Menue3;
{
                       cout&lt;&lt;&quot;Grundfläche  &quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;____________________________&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor g an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;g;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                       cout&lt;&lt;&quot;Mantelfläche&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;___________________________&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;Bitte geben Sie Faktor u an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;u;

}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(g*h/2*(u*h))&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(g*h/2*g*h/2+u*h)&lt;&lt;endl;
                         break;

}
}

       switch(Menue1)
{
{
       case 9:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=Pi*r*r*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=M+2G=2*Pi*r*h+2*Pi*r*r&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float h;
               float r;
               const float Pi=3.125;
               switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=Pi*r*r*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=M+2G=2*Pi*r*h+2*Pi*r*r&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(Pi*r*r*h)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(2*Pi*r*h+2*Pi*r*r)&lt;&lt;endl;
                         break;

}
}
        switch(Menue1)
{
{
       case 10:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=1/3*G*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=G+M&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float a;
               float h;
               float hs;

{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=1/3*G*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=G+M&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor a an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;a;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor hs an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;hs;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(1/3*a*a*h)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(a*a+a*hs/2)&lt;&lt;endl;
                         break;

}
}
        switch(Menue1)
{
{
       case 11:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=1/3G*h=1/3*Pi*r*r*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=G+M=Pe*r*r+Pi*r*S&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Mantelflaeche: M=Pi*r*s&quot;&lt;&lt;endl;
}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float r;
               float h;
               float s;
               const float Pi=3.125;
               switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=1/3G*h=1/3*Pi*r*r*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=G+M=Pi*r*r+Pi*r*S&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[3]Mantelflaeche: M=Pi*r*s&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;h;
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor s an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;s;
}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(1/3*Pi*r*r*h)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(Pi*r*r+Pi*r*s)&lt;&lt;endl;
                         break;
}
                     switch(Menue3)
{
                        case 3:
                           cout&lt;&lt;&quot;Die Mantelflaeche ist: &quot;&lt;&lt;(Pi*r*s)&lt;&lt;endl;
                         break;
}
}
        switch(Menue1)
{
{
       case 12:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=4/3*Pi*r*r*r&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=4*Pi*r*r&quot;&lt;&lt;endl;

}
{
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
}
               float r;
               const float Pi=3.125;
                switch(Menue2)
{                 case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=4/3*Pi*r*r*r&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=4*Pi*r*r&quot;&lt;&lt;endl;

}
                      cin&gt;&gt;Menue3;
{
                      cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;

}
                       switch(Menue3)
{                        case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(4/3*Pi*r*r*r)&lt;&lt;endl;
                         break;
}
                       switch(Menue3)
{                        case 2:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(4*Pi*r*r)&lt;&lt;endl;
                         break;
}
};

      std::cin.clear();
      std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());
      std::cin.get();

      return 0;
     }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/865700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865700</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 18:50:58 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 18:52:42 GMT]]></title><description><![CDATA[<p>Ich mach mich nur ungern auf Fehlersuche, sag einfach was nicht klappt und ich schau mal die konkreten Stellen an <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>Falls die Klammersetzung nicht durch den Kopiervorgang Editor-&gt;Forum passiert ist liegt sicherlich auch dort der Hund begraben <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>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865701</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 05 Sep 2005 18:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 18:57:29 GMT]]></title><description><![CDATA[<p>Also das Problem ist der hört nachd er aufgabe nicht auf. Z.B er berechnen dan das was ich will aber macht dann weiter. er geht dann zu nechsten aufgabe und will dan dort die faktoren wissen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865703</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 18:57:29 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:00:29 GMT]]></title><description><![CDATA[<p>Ich glaub das Problem liegt an deinen vielen Switches, das sollte so aussehen:</p>
<pre><code class="language-cpp">switch(Menue1)
{
    case 0:
    break;

    case 1:
    break;

    ...
}
</code></pre>
<p>und nicht:</p>
<pre><code class="language-cpp">// FALSCH :warning:

switch(Menue1)
{
    case 0:
    break;
}

switch(Menue1)
{
    case 1:
    break;
}
</code></pre>
<p>Aber leider ist die Klammerung derart schlecht, dass ich nichtmal die Struktur dahinter erkennen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Und bitte ändere die Klammerung ist ja ekelhaft!</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865704</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:02:20 GMT]]></title><description><![CDATA[<p>Ahso sry <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title="=("
      alt="😞"
    /> wegen den Klammern. Wie sollte iche s den besser machen? danke schonmahl</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865706</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:05:01 GMT]]></title><description><![CDATA[<p>dir fehlt sicher ne Klammer, das kann aber niemand erkennen, da du a) die Klammern absolut grottig positionierst(sodass man nicht erkennen kann, dass eine fehlt) und b) da du eine absolut häßliche schlangenfunktion geschrieben hast, sodass ich keine lust hab, die Klammern händisch richtig zu setzen.</p>
<p>ok: klammerkurs für anfänger:</p>
<pre><code class="language-cpp">if(a)
{
    if(b)
    {
        switch(c)
        {
        }
    }
}
</code></pre>
<p>wenn dus so machst, musst du nur die augen nach oben und unten bewegen und kannst sofort fehlende/falsche Klammern erkennen. toll oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865707</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865707</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:06:16 GMT]]></title><description><![CDATA[<p>Ahja. Die klammern müssen sein. Sonst läuft nichts.<br />
Sagt mir wie man sowas besser machen kann. Ich blicke da durch. Sry wenn ihr das nicht macht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865709</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:04:48 GMT]]></title><description><![CDATA[<p>mose schrieb:</p>
<blockquote>
<p>Ahso sry <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title="=("
      alt="😞"
    /> wegen den Klammern. Wie sollte iche s den besser machen? danke schonmahl</p>
</blockquote>
<p>Man rückt die Klammern ein:</p>
<pre><code class="language-cpp">if(...)
{
    while(...)
    {
    } // immer schön unter die zugehörige start-anweisung
}
</code></pre>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865710</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:04:48 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:05:36 GMT]]></title><description><![CDATA[<p>breaks fehlen imho auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865711</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865711</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:05:36 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:07:00 GMT]]></title><description><![CDATA[<p>da ist so einiges komisch wenn man sich das mal anschaut <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/865712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865712</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:09:17 GMT]]></title><description><![CDATA[<p>du solltest vll auch beachten das man switches eher benutzen soll wenns mehr als 2 fälle sind. bei der menue1 sache sinds 12 das ist ok, aber bei 2en zB deiner &quot;beenden&quot; abfrage ists nur unübersichtlich.<br />
Wie SideWinder schon sagte sind deine switches eh falsch.<br />
Dazu kommt das du dir vll gedanken machen solltest eine schleife zu benutzen, in der du immer wieder die berechnungen und eingaben machst mis jemand bei der abfrage obs weiter gehen soll &quot;nein&quot; eingibt.<br />
dazu solltest du dir überlegen ob du die einzelnen berechnungen nicht in funktionen packen solltest.Nur mal so als vorschlag</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865714</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:11:26 GMT]]></title><description><![CDATA[<p>Jo, hier liegt ganz klar scherwer Fall von Spaghetticode vor (und das ganz ohne goto)</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865717</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:11:26 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:18:04 GMT]]></title><description><![CDATA[<p>JO danke ! Aber ka wie ich es machen soll. In der Schule sind wir erst bei Hello World. Hab mir versucht zuhause weitere Sachen bei zu bringen. <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="=/"
      alt="😕"
    /> Naja kommt nur scheisse bei rum. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/865718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865718</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:21:58 GMT]]></title><description><![CDATA[<p>mose was muss man rauchen um solch kranken code zu schreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865723</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865723</guid><dc:creator><![CDATA[hmmmmmmm]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:21:58 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:23:31 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/10415">@mose</a>:</p>
<p><a href="http://tutorial.schornboeck.net" rel="nofollow">http://tutorial.schornboeck.net</a><br />
<a href="http://www.volkard.de/vcppkold/inhalt.html" rel="nofollow">http://www.volkard.de/vcppkold/inhalt.html</a></p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865725</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:29:34 GMT]]></title><description><![CDATA[<p>Wieso ist der code krank? der ist logisch aufgebaut ! Wenn manw eiss wie kann man den verstehen. Ahja sowas finde ich irgentwie feige. Die Person anzugreifen weil er so einen Code geschrieben hat. Besonders wenn er versucht sich das grad an zu eignen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865734</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:29:50 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/10415">@mose</a>: Nimms doch nicht persönlich, hier bist du im Internet. Der kann dich vollkommen anonym und zum Spaß angreifen und du regst dich auf obwohls gar nicht nötig ist. Lass ihn reden <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="😉"
    /></p>
<p>MfG SideWiner</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865735</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:29:50 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:31:17 GMT]]></title><description><![CDATA[<p>Mich regt es auf das so welche Leute nicht normal reden können. Müssen sofort die anderen angreifen ! Die sind im RL genau so drauf!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865737</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:31:17 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:33:53 GMT]]></title><description><![CDATA[<p>mose schrieb:</p>
<blockquote>
<p>Wieso ist der code krank? der ist logisch aufgebaut ! Wenn manw eiss wie kann man den verstehen.</p>
</blockquote>
<p>dass ist das problem: man kann nicht selber drauf kommen, sondern man muss den code selber geschrieben haben <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="😉"
    /></p>
<p>gute Klammerung trägt viel zur lesbarkeit bei, da man genau sieht <strong>wo</strong> etwas anfängt und <strong>wo</strong> etwas aufhört.</p>
<p>und...das ganze ist viel zulang. das ist einfach nicht wartbar. stell dir vor: bei deinem copy&amp;paste ist dir an einer stelle ein fehler unterlaufen, der jetzt natürlich überall vorkommt. anstatt an einer stelle korrigieren zu müssen, musst du es jetzt an x stellen tun. Und du wirst wohl zugeben, dass dies nicht sinn der sache sein kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865739</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:34:35 GMT]]></title><description><![CDATA[<p>mose lerne es kleine funktionen zu schreiben. dann siehts nicht mehr so krank aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865740</guid><dc:creator><![CDATA[hmmmmmmm]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:34:35 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 19:45:37 GMT]]></title><description><![CDATA[<p>JO da hasse recht. leider kann ich noch nichts anderes.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865747</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 19:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 20:52:49 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>stell dir vor: bei deinem copy&amp;paste ist dir an einer stelle ein fehler unterlaufen, der jetzt natürlich überall vorkommt. anstatt an einer stelle korrigieren zu müssen, musst du es jetzt an x stellen tun. Und du wirst wohl zugeben, dass dies nicht sinn der sache sein kann.</p>
</blockquote>
<p>Schon geschehen die konstante Pi ist falsch. Kommt im programm min 7x vor.<br />
Sowas solltest du wirklich vermeiden.<br />
Kurt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865771</guid><dc:creator><![CDATA[ZuK]]></dc:creator><pubDate>Mon, 05 Sep 2005 20:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Mon, 05 Sep 2005 21:18:23 GMT]]></title><description><![CDATA[<p>LOL</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865783</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865783</guid><dc:creator><![CDATA[Pi=3.15]]></dc:creator><pubDate>Mon, 05 Sep 2005 21:18:23 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Tue, 06 Sep 2005 17:11:53 GMT]]></title><description><![CDATA[<p>SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<br />
Habe das alles überarbeitet. Naja ich hoffe es ist diesmahl besser. Ahja wenn ihr eine verbesserung habt bitte postet den Quelltext davon und erklärt die Befehle. Denn ich kann damit sonst nichts anfangen. DANKE</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
#include&lt;string&gt;

int main()
{
      string figure[]={&quot;das Rechteck&quot;,&quot;das Parallelogramm&quot;,&quot;das Dreieck&quot;,&quot;das Trapez&quot;,
                    &quot;den Kreis&quot;,&quot;den Sektor&quot;,&quot; den Quader&quot;,&quot;das Prisma&quot;,&quot;den Zylinder&quot;,
                    &quot;die Pyramide&quot;,&quot;den Kegel&quot;,&quot;die Kugel&quot;};

      int Menue1;
      int Menue2;
      int Menue3;
      const float Pi=3.141592654;
      cout&lt;&lt;&quot;[0]Beenden  &quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[1]Rechteck&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[2]Parallelogramm&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[3]Dreieck&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[4]Trapez&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[5]Kreis: Flaecheninhalt&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[6]Kreisausschnit (Sektor)&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[7]Quader&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[8]Prisma(gerades)&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[9]Zylinder&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[10]Pyramide&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[11]Kegel&quot;&lt;&lt;endl;
      cout&lt;&lt;&quot;[12]Kugel&quot;&lt;&lt;endl;
         cin&gt;&gt;Menue1;
       if(Menue1==0)
       return 0;

    switch(Menue1)

          cout&lt;&lt;&quot;Sie haben &quot;&lt;&lt;figure[Menue1-1]&lt;&lt;&quot; gewaehlt.&quot;&lt;&lt;endl;
       switch(Menue1)

       case 1:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=a*b&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=2a+2b&quot;&lt;&lt;endl;

 {
               cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                   return 0;

                  float a;
                  float b;
                  switch(Menue2)
              {
                     case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Flaecheninhalt: A=a*b&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Umfang: U=2a+2b&quot;&lt;&lt;endl;
                      break;
               }
                      cin&gt;&gt;Menue3;

                   {
                        cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                           cin&gt;&gt;a;
                        cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                           cin&gt;&gt;b;
                   }

                       switch(Menue3)
                        {
                        case 1:
                         cout&lt;&lt;&quot;Der Flaecheninhalt ist: &quot;&lt;&lt;(a*b)&lt;&lt;endl;
                        break;
                        case 2:
                         cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                        break;
                        }

 }

       switch(Menue1)

        case 2:
           cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
           cout&lt;&lt;&quot;Flaecheninhalt:F=g*h&quot;&lt;&lt;endl;
           cout&lt;&lt;&quot;Umfang: U=2a+2b&quot;&lt;&lt;endl;

 {
           {
               cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                  cin&gt;&gt;Menue2;
                  if(Menue2==0)
                   return 0;
           }
                  float a;
                  float b;
                  float h;
                  switch(Menue2)

                 {

                       case 1:
                         cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;[1]Flaecheninhalt:A=g*h&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;[2]Umfang:U=2a+2b&quot;&lt;&lt;endl;
                          break;
                            cin&gt;&gt;Menue3;
                }

                        {
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie den Faktor b an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;b;
                        }

                        switch(Menue3)
                          {
                            case 1:
                                cout&lt;&lt;&quot;Bitte geben Sie die Hoehe an&quot;&lt;&lt;endl;
                                    cin&gt;&gt;h;
                                  cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a*b*h)&lt;&lt;endl;
                                     break;
                            case 2:
                                  cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+a+b+b)&lt;&lt;endl;
                                     break;

                          }
 }

      switch(Menue1)

       case 4:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=a+c/2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang: U=a+b+c+d&quot;&lt;&lt;endl;
 {
                 {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
                 }

                  float a;
                  float b;
                  float c;
                  float d;
                  float h;
                  const int zwei=2;
                  switch(Menue2)

                     {
                      case 1:
                       cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;[1]Flaecheninhalt:A=a+c/2*h&quot;&lt;&lt;endl;
                       cout&lt;&lt;&quot;[2]Umfang:U=U=a+b+c+d&quot;&lt;&lt;endl;
                          cin&gt;&gt;Menue3;
                     }

                     cout&lt;&lt;&quot;Bitte geben Sie den Faktor a an.&quot;&lt;&lt;endl;
                        cin&gt;&gt;a;

                        switch(Menue3)

                        {
                           case 1:
                             cout&lt;&lt;&quot;Bitte geben Sie Faktor c an&quot;&lt;&lt;endl;
                                cin&gt;&gt;c;
                            cout&lt;&lt;&quot;Bitte geben Sie die Höhe an&quot;&lt;&lt;endl;
                               cin&gt;&gt;h;
                               cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(a+c/2*h)&lt;&lt;endl;
                               break;

                           case 2:
                            cout&lt;&lt;&quot;Bitte geben Sie Faktor c an&quot;&lt;&lt;endl;
                               cin&gt;&gt;c;
                            cout&lt;&lt;&quot;Bitte geben Sie Faktor d an&quot;&lt;&lt;endl;
                               cin&gt;&gt;d;
                            cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(a+b+c+d)&lt;&lt;endl;
                            break;

                        }
 }

             switch(Menue1)

               case 5:
                 cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
                 cout&lt;&lt;&quot;Flaecheninhalt:A=Pi*r^2=Pi*d^2/4&quot;&lt;&lt;endl;
                 cout&lt;&lt;&quot;Umfang:U=Pi*d=2*Pi*r&quot;&lt;&lt;endl;

 {
                 {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                      if(Menue2==0)
                      return 0;
                 }
                      float r;
                      float d;
                      switch(Menue2)

                      {
                       case 1:
                         cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;[1]Flaecheninhalt:A=Pi*r^2=Pi*d^2/4&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;[2]Umfang:U=Pi*d=2*Pi*r&quot;&lt;&lt;endl;
                          cin&gt;&gt;Menue3;
                      }

                        switch(Menue3)

                          {
                           case 1:
                             cout&lt;&lt;&quot;Bitte geben Sie den Radius an.&quot;&lt;&lt;endl;
                                cin&gt;&gt;r;
                             cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(Pi*r*r)&lt;&lt;endl;
                               break;

                           case 2:
                             cout&lt;&lt;&quot;Bitte geben Sie den Durchmesser an.&quot;&lt;&lt;endl;
                               cin&gt;&gt;d;
                             cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(Pi*d)&lt;&lt;endl;
                                break;
                          }
 }

     switch(Menue1)

      case 6:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Kreisausschnitt:A=Pi*r^2*Alpha/360^2&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*r^2*Alpha/180&quot;&lt;&lt;endl;
 {
                 {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                      if(Menue2==0)
                      return 0;
                 }
                            float r;
                            float Alpha;

                         switch(Menue2)
                    {
                       case 1:
                         cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                         cout&lt;&lt;&quot;[1]Flaecheninhalt:A=Pi*r*r*Alpha/360*360&quot;&lt;&lt;endl;
                          cout&lt;&lt;&quot;[2]Umfang:U=Pi*r*r*Alpha/180&quot;&lt;&lt;endl;
                          cin&gt;&gt;Menue3;
                    }

                         {
                          cout&lt;&lt;&quot;Bitte geben Sie den Radius an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;r;
                          cout&lt;&lt;&quot;Bitte geben Sie Alpha an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;Alpha;
                         }

                       switch(Menue3)
                            {
                             case 1:
                               cout&lt;&lt;&quot;Die Flaeche ist: &quot;&lt;&lt;(Pi*r*r*Alpha/360*360)&lt;&lt;endl;
                                  break;

                             case 2:
                               cout&lt;&lt;&quot;Der Umfang ist: &quot;&lt;&lt;(Pi*r*r*Alpha/180)&lt;&lt;endl;
                                   break;

                            }
 }

        switch(Menue1)

        case 7:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V= a*b*c&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=2ab+2ac+2bc&quot;&lt;&lt;endl;

 {
                 {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                      if(Menue2==0)
                      return 0;
                 }

                    float a;
                    float b;
                    float c;

                   switch(Menue2)
                   {
                    case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=a*b*c&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=2ab+2ac+2bc&quot;&lt;&lt;endl;
                       cin&gt;&gt;Menue3;
                   }

                        {
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor a an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;a;
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor b an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;b;
                         cout&lt;&lt;&quot;Bitte geben Sie Faktor c an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;c;
                         }

                       switch(Menue3)

                        {
                          case 1:
                           cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(a*b*c)&lt;&lt;endl;
                             break;

                            case 2:
                             cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(a*b+a*b+a*c+a*c+b*c+b*c)&lt;&lt;endl;
                               break;
                        }
 }

       switch(Menue1)

        case 8:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=G*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=2G+M&quot;&lt;&lt;endl;

 {
                {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                      if(Menue2==0)
                      return 0;
                }
                   float g;
                   float h;
                   float u;

                        switch(Menue2)
                         {
                          case 1:
                           cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                           cout&lt;&lt;&quot;[1]Volumen: V=G*h&quot;&lt;&lt;endl;
                           cout&lt;&lt;&quot;[2]Oberflaeche: O=2G+M&quot;&lt;&lt;endl;
                            cin&gt;&gt;Menue3;
                         }

                               {
                                  cout&lt;&lt;&quot;Grundfläche  &quot;&lt;&lt;endl;
                                  cout&lt;&lt;&quot;____________________________&quot;&lt;&lt;endl;
                                  cout&lt;&lt;&quot;Bitte geben Sie Faktor g an.&quot;&lt;&lt;endl;
                                     cin&gt;&gt;g;
                                  cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                                     cin&gt;&gt;h;
                                  cout&lt;&lt;&quot;Mantelfläche&quot;&lt;&lt;endl;
                                  cout&lt;&lt;&quot;___________________________&quot;&lt;&lt;endl;
                                  cout&lt;&lt;&quot;Bitte geben Sie Faktor u an.&quot;&lt;&lt;endl;
                                     cin&gt;&gt;u;

                                }

                                switch(Menue3)

                                   {
                                    case 1:
                                      cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(g*h/2*(u*h))&lt;&lt;endl;
                                        break;

                                    case 2:
                                      cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(g*h/2*g*h/2+u*h)&lt;&lt;endl;
                                        break;

                                   }
 }

         switch(Menue1)
         case 9:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=Pi*r*r*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=M+2G=2*Pi*r*h+2*Pi*r*r&quot;&lt;&lt;endl;
 {
                 {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                      if(Menue2==0)
                      return 0;
                }
                         float h;
                         float r;
                         switch(Menue2)

                       {
                        case 1:
                        cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                        cout&lt;&lt;&quot;[1]Volumen: V=Pi*r*r*h&quot;&lt;&lt;endl;
                        cout&lt;&lt;&quot;[2]Oberflaeche: O=M+2G=2*Pi*r*h+2*Pi*r*r&quot;&lt;&lt;endl;
                       }
                      cin&gt;&gt;Menue3;

                          {
                            cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                               cin&gt;&gt;h;
                            cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                               cin&gt;&gt;r;
                          }
                       switch(Menue3)
                                {
                                  case 1:
                                    cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(Pi*r*r*h)&lt;&lt;endl;
                                     break;

                                   case 2:
                                    cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(2*Pi*r*h+2*Pi*r*r)&lt;&lt;endl;
                                      break;
                                }
 }

       switch(Menue1)
       case 10:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=1/3*G*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=G+M&quot;&lt;&lt;endl;
 {
                {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                      cin&gt;&gt;Menue2;
                  if(Menue2==0)
                  return 0;
                }
                     float a;
                     float h;
                     float hs;

                    switch(Menue2)
                   {
                    case 1:
                      cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[1]Volumen: V=1/3*G*h&quot;&lt;&lt;endl;
                      cout&lt;&lt;&quot;[2]Oberflaeche: O=G+M&quot;&lt;&lt;endl;
                         cin&gt;&gt;Menue3;
                   }

                        {
                          cout&lt;&lt;&quot;Bitte geben Sie Faktor a an.&quot;&lt;&lt;endl;
                              cin&gt;&gt;a;
                          cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                              cin&gt;&gt;h;
                          cout&lt;&lt;&quot;Bitte geben Sie Faktor hs an.&quot;&lt;&lt;endl;
                             cin&gt;&gt;hs;
                        }

                       switch(Menue3)
                               {
                                 case 1:
                                  cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(1/3*a*a*h)&lt;&lt;endl;
                                   break;

                                  case 2:
                                   cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(a*a+a*hs/2)&lt;&lt;endl;
                                    break;
                               }
 }

       switch(Menue1)
       case 11:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=1/3G*h=1/3*Pi*r^2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=G+M=Pe*r^2+Pi*r*S&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Mantelflaeche: M=Pi*r*s&quot;&lt;&lt;endl;
 {
                 {
                  cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                     cin&gt;&gt;Menue2;
                       if(Menue2==0)
                       return 0;
                 }
                    float r;
                    float h;
                    float s;

                     switch(Menue2)

                           {
                             case 1:
                             cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                             cout&lt;&lt;&quot;[1]Volumen: V=1/3G*h=1/3*Pi*r*r*h&quot;&lt;&lt;endl;
                             cout&lt;&lt;&quot;[2]Oberflaeche: O=G+M=Pi*r*r+Pi*r*S&quot;&lt;&lt;endl;
                             cout&lt;&lt;&quot;[3]Mantelflaeche: M=Pi*r*s&quot;&lt;&lt;endl;
                            cin&gt;&gt;Menue3;
                           }

                                  {
                                   cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                                      cin&gt;&gt;r;
                                   cout&lt;&lt;&quot;Bitte geben Sie Faktor h an.&quot;&lt;&lt;endl;
                                      cin&gt;&gt;h;
                                   cout&lt;&lt;&quot;Bitte geben Sie Faktor s an.&quot;&lt;&lt;endl;
                                      cin&gt;&gt;s;
                                  }

                             switch(Menue3)
                                              {
                                               case 1:
                                                 cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(1/3*Pi*r*r*h)&lt;&lt;endl;
                                                   break;

                                               case 2:
                                                 cout&lt;&lt;&quot;Das Oberflaeche ist: &quot;&lt;&lt;(Pi*r*r+Pi*r*s)&lt;&lt;endl;
                                                   break;

                                               case 3:
                                                 cout&lt;&lt;&quot;Die Mantelflaeche ist: &quot;&lt;&lt;(Pi*r*s)&lt;&lt;endl;
                                                   break;
                                              }
 }

        switch(Menue1)
          case 12:
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Volumen: V=4/3*Pi*r^3&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Oberflaeche: O=4*Pi*r*r&quot;&lt;&lt;endl;

 {
                    {
                     cout&lt;&lt;&quot;Wollen Sie fortfahren? [1] Ja [0] Nein.&quot;&lt;&lt;endl;
                        cin&gt;&gt;Menue2;
                         if(Menue2==0)
                         return 0;
                    }
                                float r;
                                switch(Menue2)
                         {
                          case 1:
                          cout&lt;&lt;&quot;Waehlen Sie:&quot;&lt;&lt;endl;
                          cout&lt;&lt;&quot;[1]Volumen: V=4/3*Pi*r^3&quot;&lt;&lt;endl;
                          cout&lt;&lt;&quot;[2]Oberflaeche: O=4*Pi*r^2&quot;&lt;&lt;endl;
                          cin&gt;&gt;Menue3;
                         }

                              {
                               cout&lt;&lt;&quot;Bitte geben Sie Faktor r an.&quot;&lt;&lt;endl;
                                  cin&gt;&gt;r;
                              }

                                switch(Menue3)
                                      {
                                       case 1:
                                         cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(4/3*Pi*r*r*r)&lt;&lt;endl;
                                           break;

                                       case 2:
                                        cout&lt;&lt;&quot;Das Volumen ist: &quot;&lt;&lt;(4*Pi*r*r)&lt;&lt;endl;
                                           break;
                                       }

 }

      std::cin.clear();
      std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());
      std::cin.get();

      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/866440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/866440</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Tue, 06 Sep 2005 17:11:53 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Tue, 06 Sep 2005 17:57:52 GMT]]></title><description><![CDATA[<p>Du hast dein Programm immer noch nicht in Funktionen aufgeteilt und die Klammernsetzung ist auch noch komisch.</p>
<p>Also ich sehe keine Verbesserung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/866469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/866469</guid><dc:creator><![CDATA[soooooo]]></dc:creator><pubDate>Tue, 06 Sep 2005 17:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to [HELP] Programm fertig leider viele Bugs. on Tue, 06 Sep 2005 18:05:37 GMT]]></title><description><![CDATA[<p>HM... Zeigt mir bitte ein Beispiel. ICH meine einen größeren Quelltext wo es gut gezeigt wird. <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="=/"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/866476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/866476</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Tue, 06 Sep 2005 18:05:37 GMT</pubDate></item></channel></rss>