<?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[Schleife wird übersprungen]]></title><description><![CDATA[<p>Mein problem ist dass in diesen programm iergendwie immer die while schleife übersprugen wird und so nicht das programm wiederholt wird . Ich denke das liegt an der if schleife doch ich weiß nicht wie ich es richtig mache kann ...</p>
<pre><code class="language-cpp">int main()
{
int variablen bla bla bla;

do{
cout &lt;&lt; &quot;1. bla bla bla bla &quot;;
cout &lt;&lt; &quot;2. nblaadfks &quot;;
cout &lt;&lt; &quot;3. asdjkwnain &quot;;
cin  &gt;&gt; auswahl;
if (auswahl &gt;= 3)
   {
   cout &lt;&lt; &quot;Ungueltige eingabe&quot;
   break;
   }
switch(auswahl)
  {
  case 1: cout &lt;&lt; &quot; baskfmnwk &quot;;
          break;
  case 2: cout &lt;&lt; &quot; jasf&quot;;
          break;
  case 3: cout &lt;&lt; &quot; wjafan&quot;;
          break;
  }
  cout &lt;&lt; &quot; Nochmal (j/n)&quot; &lt;&lt; endl;
  cin  &gt;&gt; i;
  }
  while ( i == n);
  cin.get();cin.get()
  return 0;
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/181088/schleife-wird-übersprungen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 22:33:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181088.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2007 19:25:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schleife wird übersprungen on Wed, 09 May 2007 19:25:35 GMT]]></title><description><![CDATA[<p>Mein problem ist dass in diesen programm iergendwie immer die while schleife übersprugen wird und so nicht das programm wiederholt wird . Ich denke das liegt an der if schleife doch ich weiß nicht wie ich es richtig mache kann ...</p>
<pre><code class="language-cpp">int main()
{
int variablen bla bla bla;

do{
cout &lt;&lt; &quot;1. bla bla bla bla &quot;;
cout &lt;&lt; &quot;2. nblaadfks &quot;;
cout &lt;&lt; &quot;3. asdjkwnain &quot;;
cin  &gt;&gt; auswahl;
if (auswahl &gt;= 3)
   {
   cout &lt;&lt; &quot;Ungueltige eingabe&quot;
   break;
   }
switch(auswahl)
  {
  case 1: cout &lt;&lt; &quot; baskfmnwk &quot;;
          break;
  case 2: cout &lt;&lt; &quot; jasf&quot;;
          break;
  case 3: cout &lt;&lt; &quot; wjafan&quot;;
          break;
  }
  cout &lt;&lt; &quot; Nochmal (j/n)&quot; &lt;&lt; endl;
  cin  &gt;&gt; i;
  }
  while ( i == n);
  cin.get();cin.get()
  return 0;
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1281919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281919</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Wed, 09 May 2007 19:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Wed, 09 May 2007 19:28:53 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Deine Schleife wird solange durchlaufen solange die Inhalte der Variablen i und n gleich sind. Da aber n sonst nicht bei dir im Codeauszug auftaucht, können wir dazu nicht viel sagen.<br />
Ich vermute aber du willst das so</p>
<pre><code class="language-cpp">while ( i != 'n');
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281922</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 09 May 2007 19:28:53 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Wed, 09 May 2007 19:33:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char i;
</code></pre>
<pre><code class="language-cpp">i=getch()
</code></pre>
<p>nur ein Tastendruck(benötigt conio.h)</p>
<pre><code class="language-cpp">while(i=='j')
</code></pre>
<p>solange j gedrückt wird</p>
<p>oder</p>
<pre><code class="language-cpp">while(i!='n')
</code></pre>
<p>solange nicht 'n' gedrückt wurde</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281926</guid><dc:creator><![CDATA[AGS&#x27;ler]]></dc:creator><pubDate>Wed, 09 May 2007 19:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Sun, 13 May 2007 10:25:30 GMT]]></title><description><![CDATA[<p>so hier hab ich ma ein beispiel programmiert<br />
immer wenn man sagt nochmal rechnen schließt sich das programm was es eigentlich nicht sollte</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

int main()
{
char i;
int eingabe;
long double zahl1,zahl2;

do{
system(&quot;CLS&quot;);    
cout &lt;&lt; &quot;\n\t &lt;--------Taschenrechner-------&gt;&quot;&lt;&lt; endl;
cout &lt;&lt; &quot;\n\t 1.Addieren                   &lt;1&gt; &quot;;
cout &lt;&lt; &quot;\n\t 2.Subtrahieren               &lt;2&gt; &quot; ;
cout &lt;&lt; &quot;\n\t 3.Multiplizieren             &lt;3&gt; &quot;;
cout &lt;&lt; &quot;\n\t 4.Dividieren                 &lt;4&gt; &quot;;
cout &lt;&lt; &quot;\n\t 5.Potenz                     &lt;5&gt; &quot;;
cout &lt;&lt; &quot;\n\t 6.Wurzel                     &lt;6&gt; &quot; &lt;&lt; endl;
cout &lt;&lt; &quot;\n\t &lt;---Copyright-by-C4ponnEEee---&gt;&quot;;
cout &lt;&lt; endl;
cout &lt;&lt; &quot;\n\t Auswahl : &quot;;
cin  &gt;&gt; eingabe;

switch(eingabe)
  {
  case 1: cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Addition : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;+&quot; &lt;&lt; zahl2 &lt;&lt; &quot; = &quot; &lt;&lt; zahl1+zahl2;
          break;
  case 2: cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Subtraktion : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;-&quot; &lt;&lt; zahl2 &lt;&lt; &quot; = &quot; &lt;&lt; zahl1-zahl2;
          break;
  case 3: cout &lt;&lt; cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Multiplikation : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;*&quot; &lt;&lt; zahl2 &lt;&lt; &quot;=&quot; &lt;&lt; zahl1*zahl2;
          break;
  case 4: cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Division : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;:&quot; &lt;&lt; zahl2 &lt;&lt; &quot;=&quot; &lt;&lt; zahl1/zahl2;
          break;

  case 5: cout &lt;&lt; &quot;\n\t Geben sie eine Zahl ein : &quot;;
          cin &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t &quot; &lt;&lt; zahl1 &lt;&lt; &quot; zum quadrat ist = &quot; &lt;&lt; zahl1*zahl1 &lt;&lt; endl;
          break;
  case 6: cout &lt;&lt; &quot;\n\t Geben sie eine Zahl ein : &quot;;
          cin &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Die Wurzel von &quot; &lt;&lt; zahl1 &lt;&lt;  &quot; = &quot; &lt;&lt; sqrt(zahl1) &lt;&lt; endl;
          break;

  default: cout &lt;&lt; endl;
           cout &lt;&lt;&quot;\n\t Ungueltige Eingabe&quot; &lt;&lt; endl;
           break;
   }       
          cout &lt;&lt; endl;
          cout &lt;&lt; endl;
          cout &lt;&lt; &quot;\n\t Wollen Sie nochmal Rechnen? (j/n)&quot; &lt;&lt; endl;
          cout &lt;&lt; &quot;\n\t Antwort: &quot;;
          cin &gt;&gt; i;
          } 
          while (i == 'j');
          cin.get(); cin.get();
          return 0;

return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1283903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283903</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Sun, 13 May 2007 10:25:30 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Sun, 13 May 2007 11:19:14 GMT]]></title><description><![CDATA[<p>Ich hab deinen Code bei mir kompiliert und ausführen lassen und wenn man j eingibt, schließt sich das Programm <strong>nicht</strong>. Vielleicht schreibst du J immer groß...</p>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1283947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283947</guid><dc:creator><![CDATA[Phoemuex]]></dc:creator><pubDate>Sun, 13 May 2007 11:19:14 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Sun, 13 May 2007 12:28:07 GMT]]></title><description><![CDATA[<p>Phoemuex schrieb:</p>
<blockquote>
<p>Ich hab deinen Code bei mir kompiliert und ausführen lassen und wenn man j eingibt, schließt sich das Programm <strong>nicht</strong>. Vielleicht schreibst du J immer groß...</p>
<p>Felix</p>
</blockquote>
<p>genauso ist es auch bei mir ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1283994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283994</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Sun, 13 May 2007 12:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Sun, 20 May 2007 14:19:11 GMT]]></title><description><![CDATA[<p>ach jetz hab ich was vergessen ^^</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

int main()
{
char i;
int eingabe;
long double zahl1,zahl2;

do{
system(&quot;CLS&quot;);    
cout &lt;&lt; &quot;\n\t &lt;--------Taschenrechner-------&gt;&quot;&lt;&lt; endl;
cout &lt;&lt; &quot;\n\t 1.Addieren                   &lt;1&gt; &quot;;
cout &lt;&lt; &quot;\n\t 2.Subtrahieren               &lt;2&gt; &quot; ;
cout &lt;&lt; &quot;\n\t 3.Multiplizieren             &lt;3&gt; &quot;;
cout &lt;&lt; &quot;\n\t 4.Dividieren                 &lt;4&gt; &quot;;
cout &lt;&lt; &quot;\n\t 5.Potenz                     &lt;5&gt; &quot;;
cout &lt;&lt; &quot;\n\t 6.Wurzel                     &lt;6&gt; &quot; &lt;&lt; endl;
cout &lt;&lt; &quot;\n\t &lt;---Copyright-by-C4ponnEEee---&gt;&quot;;
cout &lt;&lt; endl;
cout &lt;&lt; &quot;\n\t Auswahl : &quot;;
cin  &gt;&gt; eingabe;
if (eingabel &gt; 6)  // ab hier 
          {
          cout &lt;&lt; &quot;\n\t Ungueltige eingabe&quot;;  
          }// bis hier  ist der fehler
switch(eingabe)
  {
  case 1: cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Addition : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;+&quot; &lt;&lt; zahl2 &lt;&lt; &quot; = &quot; &lt;&lt; zahl1+zahl2;
          break;
  case 2: cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Subtraktion : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;-&quot; &lt;&lt; zahl2 &lt;&lt; &quot; = &quot; &lt;&lt; zahl1-zahl2;
          break;
  case 3: cout &lt;&lt; cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Multiplikation : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;*&quot; &lt;&lt; zahl2 &lt;&lt; &quot;=&quot; &lt;&lt; zahl1*zahl2;
          break;
  case 4: cout &lt;&lt; &quot;\n\t Geben sie Zahl eins ein : &quot;;
          cin  &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Geben sie Zahl zwei ein : &quot;;
          cin  &gt;&gt; zahl2;
          cout &lt;&lt; &quot;\n\t Division : &quot;;
          cout &lt;&lt; zahl1 &lt;&lt; &quot;:&quot; &lt;&lt; zahl2 &lt;&lt; &quot;=&quot; &lt;&lt; zahl1/zahl2;
          break;

  case 5: cout &lt;&lt; &quot;\n\t Geben sie eine Zahl ein : &quot;;
          cin &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t &quot; &lt;&lt; zahl1 &lt;&lt; &quot; zum quadrat ist = &quot; &lt;&lt; zahl1*zahl1 &lt;&lt; endl;
          break;
  case 6: cout &lt;&lt; &quot;\n\t Geben sie eine Zahl ein : &quot;;
          cin &gt;&gt; zahl1;
          cout &lt;&lt; &quot;\n\t Die Wurzel von &quot; &lt;&lt; zahl1 &lt;&lt;  &quot; = &quot; &lt;&lt; sqrt(zahl1) &lt;&lt; endl;
          break;

   }      
          cout &lt;&lt; endl;
          cout &lt;&lt; endl;
          cout &lt;&lt; &quot;\n\t Wollen Sie nochmal Rechnen? (j/n)&quot; &lt;&lt; endl;
          cout &lt;&lt; &quot;\n\t Antwort: &quot;;
          cin &gt;&gt; i;
          }
          while (i == 'j');
          cin.get(); cin.get();
          return 0;

return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1288486</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1288486</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Sun, 20 May 2007 14:19:11 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Sun, 20 May 2007 14:38:16 GMT]]></title><description><![CDATA[<blockquote>
<pre><code class="language-cpp">cin  &gt;&gt; eingabe;
if (eingabel &gt; 6)
</code></pre>
</blockquote>
<p>vertippt beim Variablennamen? (du liest in eingabe ein und checkst dann eingabe1)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1288495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1288495</guid><dc:creator><![CDATA[Shinja]]></dc:creator><pubDate>Sun, 20 May 2007 14:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife wird übersprungen on Sat, 26 May 2007 12:01:59 GMT]]></title><description><![CDATA[<p>omg , hab ich komplett übersehen und ich war die ganze zeit am suchen wo der fehler liegen könnte , ...........................</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1292630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1292630</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Sat, 26 May 2007 12:01:59 GMT</pubDate></item></channel></rss>