<?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[Zeigt zu viel im Fenster.]]></title><description><![CDATA[<p>Hi also der zeigt mir viel zu viel an. Nachdem der Zeile &quot;cin&gt;&gt;Menue1;&quot; zeigt er mir dann alles an. Ahja noch was wie lautet der Befehl um Speicher zu reservieren der dann auch Kommerzahlen nehmen kann alsod as cih auch sowas wie 1,56 eingeben kann und es sollen auch negatieve Zahlen gehen. DANKE FÜR HILFE!</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;

      int main()
{
      int Menue1;

      const int m1=1;
      const int m2=2;
      const int m3=3;
      const int m4=4;
      const int m5=5;
      const int m6=6;
      const int m7=7;
      const int m8=8;
      const int m9=9;
      const int m10=10;
      const int m11=11;
      const int m12=12;
      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;   &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;1-5 2D&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&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;   &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;7-13 3D&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&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==m1)
          cout&lt;&lt;&quot;[1]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Rechteck gewaehlt.&quot;&lt;&lt;endl;
          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:--------&quot;&lt;&lt;endl;

       if(Menue1==m2)
          cout&lt;&lt;&quot;[2]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Parallelogramm gewaehlt.&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;

      if(Menue1==m3)
          cout&lt;&lt;&quot;[3]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Dreieck gewaehlt.&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h:2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;

       if(Menue1==m4)
          cout&lt;&lt;&quot;[4]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Trapez gewählt.&quot;&lt;&lt;endl;
          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:--------&quot;&lt;&lt;endl;

       if(Menue1==m5)
          cout&lt;&lt;&quot;[5]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Kreis gewählt.&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=Pi*h*h=Pi*d*d/4&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*d=2Pir&quot;&lt;&lt;endl;

       if(Menue1==m6)
          cout&lt;&lt;&quot;[6]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Kreisausschnit(Sektor) gewählt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m7)
          cout&lt;&lt;&quot;[7]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Quader gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m8)
          cout&lt;&lt;&quot;[8]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Prisma(gerades) gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m9)
          cout&lt;&lt;&quot;[9]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Zylinder gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m10)
          cout&lt;&lt;&quot;[10]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben die Pyramide gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m11)
          cout&lt;&lt;&quot;[11]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Kegel gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m12)
          cout&lt;&lt;&quot;[12]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben die Kugel gewaehlt.&quot;&lt;&lt;endl;
          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;

      system(&quot;PAUSE&quot;);
      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/119697/zeigt-zu-viel-im-fenster</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 03:21:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/119697.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Sep 2005 19:23:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 19:27:24 GMT]]></title><description><![CDATA[<p>Hi also der zeigt mir viel zu viel an. Nachdem der Zeile &quot;cin&gt;&gt;Menue1;&quot; zeigt er mir dann alles an. Ahja noch was wie lautet der Befehl um Speicher zu reservieren der dann auch Kommerzahlen nehmen kann alsod as cih auch sowas wie 1,56 eingeben kann und es sollen auch negatieve Zahlen gehen. DANKE FÜR HILFE!</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;

      int main()
{
      int Menue1;

      const int m1=1;
      const int m2=2;
      const int m3=3;
      const int m4=4;
      const int m5=5;
      const int m6=6;
      const int m7=7;
      const int m8=8;
      const int m9=9;
      const int m10=10;
      const int m11=11;
      const int m12=12;
      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;   &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;1-5 2D&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&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;   &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;7-13 3D&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&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==m1)
          cout&lt;&lt;&quot;[1]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Rechteck gewaehlt.&quot;&lt;&lt;endl;
          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:--------&quot;&lt;&lt;endl;

       if(Menue1==m2)
          cout&lt;&lt;&quot;[2]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Parallelogramm gewaehlt.&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;

      if(Menue1==m3)
          cout&lt;&lt;&quot;[3]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Dreieck gewaehlt.&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h:2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;

       if(Menue1==m4)
          cout&lt;&lt;&quot;[4]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Trapez gewählt.&quot;&lt;&lt;endl;
          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:--------&quot;&lt;&lt;endl;

       if(Menue1==m5)
          cout&lt;&lt;&quot;[5]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Kreis gewählt.&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=Pi*h*h=Pi*d*d/4&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:U=Pi*d=2Pir&quot;&lt;&lt;endl;

       if(Menue1==m6)
          cout&lt;&lt;&quot;[6]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Kreisausschnit(Sektor) gewählt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m7)
          cout&lt;&lt;&quot;[7]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Quader gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m8)
          cout&lt;&lt;&quot;[8]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Prisma(gerades) gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m9)
          cout&lt;&lt;&quot;[9]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Zylinder gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m10)
          cout&lt;&lt;&quot;[10]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben die Pyramide gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m11)
          cout&lt;&lt;&quot;[11]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben den Kegel gewaehlt.&quot;&lt;&lt;endl;
          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;

       if(Menue1==m12)
          cout&lt;&lt;&quot;[12]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben die Kugel gewaehlt.&quot;&lt;&lt;endl;
          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;

      system(&quot;PAUSE&quot;);
      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/864856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864856</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 19:27:24 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 19:34:22 GMT]]></title><description><![CDATA[<p>bei ifs mit mehreren Zeilen {} um die anweisungen</p>
<p>zB</p>
<pre><code class="language-cpp">if(Menue1==m1){
          cout&lt;&lt;&quot;[1]&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Sie haben das Rechteck gewaehlt.&quot;&lt;&lt;endl;
          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:--------&quot;&lt;&lt;endl;
}
</code></pre>
<p>des weiteren würde ich ne switch anweisung nehmen und auch die Konstanten verstehe ich nicht. aber die fehlenden Klammern sind auf jeden fall ein Fehler.</p>
<p>btw: hast du using namespace std; nur hier weggelassen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864869</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 19:34:22 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 19:42:53 GMT]]></title><description><![CDATA[<p>Also was ist das <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /> ? Ja, hab es ganz wech gelassen.Ist das wichtig?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864872</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 19:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 19:47:12 GMT]]></title><description><![CDATA[<p>Naja, ich weiss ja nicht, aber mich wunderts dass du den Code compilieren kannst , wenn du nicht sagst woher die funktionen cin und cout stammen.<br />
Denn mit using namespace std; machst du in deinem Programm alle Funktionen<br />
die im Namespace(namensraum) std stehen, bekannt.<br />
Dies ist nötig da dein Compiler sonst cin und cout nicht kennen kann.<br />
Also um deine Frage zu beantworten: JA ist es.<br />
btw du solltest include &lt;cstdlib&gt; und nicht stdlib.h nehmen und evtl diese Zeile<br />
weglassen und system(&quot;Pause&quot;); durch zB cin.get(); ersetzen ..<br />
Siehe <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39453.html" rel="nofollow">faq</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/864876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864876</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 19:47:12 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 19:49:29 GMT]]></title><description><![CDATA[<p>nur mal so am Rande: Auch die ersten 4 haben einen Umfang</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864878</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 19:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 19:56:11 GMT]]></title><description><![CDATA[<p>So habe es ersetzt. Hm.. habe immer noch ein Problem mit den Zahlen. wenn ich &quot;int&quot; brichte r ebi Kommerzahlen ab. Ich brauche aber was um auch Kommerzahlen zu speichern.</p>
<p>//edit: ich weiss ^^ habe diese sachen aus eineem mathebuch übernommen.^^ Naja wir noch erweitert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864885</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 19:56:11 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:09:17 GMT]]></title><description><![CDATA[<p>Ahja wie stelle ich es an das, wenn man am Anfang 0 eingibt, dass das Programm sich schießt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864896</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864896</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:14:43 GMT]]></title><description><![CDATA[<p>öhm: Kommerzahlen kann man weder in c++ noch sonst einer Sprache darstellen.<br />
Wenn du aber Komm<strong>a</strong>zahlen meinst nimm float statt int.<br />
Denn int ist ein ganzzahliger Typ und float einer für Fließkommazahlen.</p>
<p>zu deinem Menu, falls du switch kennst und ggf string könntest du es deutlich verkürzen . hier mal eine ungetestete Alternative:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
using namespace std;

int main(){
      int Menue1;
	  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;};

      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;   &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;1-5 2D&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&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;   &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;7-13 3D&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&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&lt;=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;Flaecheninhalt:A=a*b&quot;&lt;&lt;endl;
          		   cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;
				   break;
		case 2:    cout&lt;&lt;&quot;Flaecheninhalt:A=g*h:2*h&quot;&lt;&lt;endl;
          		   cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;
				   break;
		case 3:    cout&lt;&lt;&quot;Flaecheninhalt:A=g*h:2*h&quot;&lt;&lt;endl;
          			cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;
				   break;
		case 4:    cout&lt;&lt;&quot;Flaecheninhalt:A=a+c:2*h&quot;&lt;&lt;endl;
          			cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;
				   break;
		case 5:    cout&lt;&lt;&quot;Flaecheninhalt:A=Pi*h*h=Pi*d*d/4&quot;&lt;&lt;endl;
          			cout&lt;&lt;&quot;Umfang:U=Pi*d=2Pir&quot;&lt;&lt;endl;
				   break;
		case 6:    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;
				   break;		
		case 7:    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;
				   break;
		case 8:    cout&lt;&lt;&quot;Volumen: V=G*h&quot;&lt;&lt;endl;
          			cout&lt;&lt;&quot;Oberflaeche: O=2G+M&quot;&lt;&lt;endl;
				   break;
		case 9:    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;
				   break;
		case 10:   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;
				   break;		
		case 11:   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;
				   break;
		case 12:  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;
				   break;

}

      return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/864899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864899</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:13:03 GMT]]></title><description><![CDATA[<p>mose schrieb:</p>
<blockquote>
<p>Ahja wie stelle ich es an das, wenn man am Anfang 0 eingibt, dass das Programm sich schießt?</p>
</blockquote>
<pre><code class="language-cpp">if(Menue1==0)
return 0; //
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/864902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864902</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:13:03 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:15:33 GMT]]></title><description><![CDATA[<p>Also am <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="😕"
    /> schuaen wir mahl ob ich das ganz verstanden habe.<br />
string figure[] = reservier Speicher oder?<br />
cout&lt;&lt;&quot;Sie haben &quot;&lt;&lt;figure[Menue1]&lt;&lt;&quot; gewaehlt.&quot;&lt;&lt;endl; = Ind er Mittw wird dann etwas von oben eingefügt doer?</p>
<p>switch(Menue1)= Ka</p>
<p>case 1: Wird dann etwas vom gespeicherten eingefügt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864906</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:15:33 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:21:40 GMT]]></title><description><![CDATA[<p>Naja ich sagte wenn du switch kennst ..gg</p>
<p>mit string figure[]={...}<br />
definiere ich ein array von strings die den namen der Körper haben die du später benutzt.</p>
<p>cout&lt;&lt;&quot;Sie haben &quot;&lt;&lt;figure[Menue1-1]&lt;&lt;&quot; gewaehlt.&quot;&lt;&lt;endl;<br />
hiermit kannst du die gleiche ausgabe machen wie bei dir denn bei der eingabe 1<br />
bekommst du figure[0] ausgegeben . Dies ist der erste string im Array also &quot;rechteck&quot; , da der erste Index eines Arrays 0 und nicht 1 ist.</p>
<p>switch(Menue1)<br />
du betrachtest hiermit den wert der Variablen Menue1</p>
<p>mit &quot;case wert :&quot; kannst du dann das gleiche machen wie mit<br />
if(Menue1==wert)</p>
<p>so kürzt du dein Programm nur ein wenig ab.</p>
<p>also machst du mit case 1: das gleiche wie du vorher mit<br />
if(Menue1==1) gemacht hättest</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864911</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864911</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:21:40 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:27:31 GMT]]></title><description><![CDATA[<p>^^ Das ist cool <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="🙂"
    /> finde das gut <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="🙂"
    /> So <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="😕"
    /> jetzt muss man nur noch das Problem mit den Kommerzahlen lösen. <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/864919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864919</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:27:31 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 20:32:40 GMT]]></title><description><![CDATA[<p>shapeless schrieb:</p>
<blockquote>
<p>öhm: Kommerzahlen kann man weder in c++ noch sonst einer Sprache darstellen.<br />
Wenn du aber Komm<strong>a</strong>zahlen meinst nimm -&gt;</p>
<pre><code class="language-cpp">float
</code></pre>
<p>statt</p>
<pre><code class="language-cpp">int
</code></pre>
<p>Denn int ist ein ganzzahliger Typ und float einer für Fließkommazahlen.</p>
</blockquote>
<p>Wie gesagt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864924</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 20:32:40 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 21:02:45 GMT]]></title><description><![CDATA[<p>JO danke.<br />
die Sache geht nicht. <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>string figure[]={&quot;das Rechteck&quot;,&quot;das Parallelogramm&quot;,&quot;das Dreieck&quot;,&quot;das Trapez&quot;,<br />
&quot;den Kreis&quot;,&quot;den Sektor&quot;,&quot; den Quader&quot;,&quot;das prisma&quot;,&quot;den zylinder&quot;,<br />
&quot;die pyramide&quot;,&quot;den kegel&quot;,&quot;die kugel&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864933</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 21:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 21:02:58 GMT]]></title><description><![CDATA[<p>hast du<br />
};</p>
<p>am ende vergessen ?<br />
und bitte : wenn was &quot;nicht geht&quot; ssg mir bitte was du damit meinst.<br />
Compiliert dein Code nicht ? Wenn dem so ist poste bitte deine Fehlermeldungen.</p>
<p>ggf musst du mal</p>
<pre><code class="language-cpp">#include&lt;string&gt;
</code></pre>
<p>oben hinzufügen.</p>
<p>also weiter kann ich dir erst helfen wenn du mir sagst &quot;was nicht geht&quot; bzw Was für einen Fehler du bekommst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864947</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 21:02:58 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 21:06:31 GMT]]></title><description><![CDATA[<p>So die Fehler die er mir zeigt</p>
<p>In function <code>int main()': 35: parse error before</code>;'<br />
41: break statement not within loop or switch<br />
42: parse error before <code>;' 48: break statement not within loop or switch 49: parse error before</code>;'<br />
55: break statement not within loop or switch<br />
56: parse error before <code>;' 62: break statement not within loop or switch 63: parse error before</code>;'<br />
69: break statement not within loop or switch<br />
70: parse error before <code>;' 76: break statement not within loop or switch 77: parse error before</code>;'<br />
83: break statement not within loop or switch<br />
84: parse error before <code>;' 90: break statement not within loop or switch 91: parse error before</code>;'<br />
97: break statement not within loop or switch<br />
98: parse error before <code>;' 104: break statement not within loop or switch 105: parse error before</code>;'<br />
112: break statement not within loop or switch<br />
113: parse error before `;'<br />
149: parse error at end of input</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864949</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864949</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Sun, 04 Sep 2005 21:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Sun, 04 Sep 2005 21:11:13 GMT]]></title><description><![CDATA[<p>dann zeig mir doch deine Zeile 35 gleich mal.<br />
also am besten die drumherum auch also 30-40,aber bitte kennzeichne die Zeile mal.<br />
Parse error heisst meistens du hast ne klammer zu wenig , eine nicht geschlossen oder sowas in der richtung. oder semikolon vergessen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/864952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/864952</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Sun, 04 Sep 2005 21:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Mon, 05 Sep 2005 06:07:47 GMT]]></title><description><![CDATA[<pre><code>{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:--------&quot;&lt;&lt;endl;
          break;
       case 1;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;
          break;
      case 3;
          cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Flaecheninhalt:A=g*h:2*h&quot;&lt;&lt;endl;
          cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;
          break;
       case 4;
</code></pre>
<p>so ist es.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/865059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865059</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 06:07:47 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Mon, 05 Sep 2005 10:42:18 GMT]]></title><description><![CDATA[<p>nach den cases kommt ein Doppelpunkt und kein Semikolon.</p>
<p>also</p>
<pre><code class="language-cpp">switch(variablenname)
{
case 1: tu dies;break;
case 2: tu das ;break;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/865287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865287</guid><dc:creator><![CDATA[shapeless]]></dc:creator><pubDate>Mon, 05 Sep 2005 10:42:18 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Mon, 05 Sep 2005 10:56:07 GMT]]></title><description><![CDATA[<p>mose schrieb:</p>
<blockquote>
<p>[cpp]<br />
{case 1;<br />
cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Flaecheninhalt:A=a<em>b&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;<br />
break;<br />
case <strong>1</strong>; //warum 2x case 1??<br />
cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Flaecheninhalt:A=g</em>h&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;<br />
break;<br />
case 3;<br />
cout&lt;&lt;&quot;Formeln&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Flaecheninhalt:A=g*h:2*h&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Umfang:--------&quot;&lt;&lt;endl;<br />
break;<br />
case 4;<br />
[/cpp]</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/865297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865297</guid><dc:creator><![CDATA[Vorden]]></dc:creator><pubDate>Mon, 05 Sep 2005 10:56:07 GMT</pubDate></item><item><title><![CDATA[Reply to Zeigt zu viel im Fenster. on Mon, 05 Sep 2005 11:32:49 GMT]]></title><description><![CDATA[<p>Ahso gut <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>
]]></description><link>https://www.c-plusplus.net/forum/post/865323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/865323</guid><dc:creator><![CDATA[mose]]></dc:creator><pubDate>Mon, 05 Sep 2005 11:32:49 GMT</pubDate></item></channel></rss>