<?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[HILFE zu Schleifen!!]]></title><description><![CDATA[<p>moin ich bin neu hier und hoffe das mir jemand helfen kann!!!</p>
<p>Also ich habe eine Aufgabe bekommen da geht es um Schachtel Schleifen weiss jemand wie man das so lösen kann ( es müssen bstimmte Bedinungen erfüllt werden) wie geht das</p>
<p>meine lösunfg aber ich bekomme keine Ausgabe woran kann das liegen???</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
#include &lt;vcl\condefs.h&gt;
#include &lt;iostream.h&gt;
#include &lt;conio.h&gt;

//------------------------------Variablen---------------------------------------

//------------------------------ Eingabe----------------------------------------
void main ()
{
  cout &lt;&lt; &quot;Wohnprobleme&quot; &lt;&lt;endl;

for (int a = 1; a &lt;=16; a++)
    {
     if (a != 1 || a != 4 || a != 9 || a != 16) continue;

      for (int b = 1; b &lt;=16; b++)
      {
       if (b == a) continue;

          for (int c = 1; c &lt;=16; c++)
          {
           if (c == a || c == b) continue;
              for (int d = 1; d &lt;=16; d++)
              {
               if (d == a || d == b || d == c || d != 1 || d != 4 || d != 9 || d != 16) continue;

                  for (int e = 1; e &lt;=16; e++)
                  {
                   if (e == a || e == b || e == c || e == d) continue;

                      for (int f = 1; f &lt;=16; f++)
                      {
                       if (f == a || f == b || f == c || f == d || f == e) continue;

                          for (int g = 1; g &lt;=16; g++)
                           {
                             if (g == a || g == b || g == c || g == d || g == e || g == f) continue;

                             for (int h = 1; h &lt;=16; h++)
                             {
                              if (h == a || h == b || h == c || h == d || h == e || h == f || h == g) continue;

                                 for (int i = 1; i &lt;=16; i++)
                                 {
                                  if (i == a || i == b || i == c || i == d || i == e || i == f || i == g || i == h ) continue;

                                   for (int j = 1; j &lt;=16; j++)
                                   {
                                    if (j == a || j == b || j == c || j == d || j == e || j == f || j == g || j == h || j == i ) continue;

                                     	for (int k = 1; k &lt;=16; k++)
                                     	{
                                      	if (k == a || k == b || k == c || k == d || k == e || k == f || k == g || k == h || k == i || k == j ) continue;

                                      	  for (int l = 1; l &lt;=16; l++)
                                       	   {
                                       	    if (l == a || l == b || l == c || l == d || l == e || l == f || l == g || l == h || l == i || l == j || l == k || l != 1 || l != 4 || l != 9 || l != 16) continue;

                                          	for (int m = 1; m &lt;=16; m++)
                                          	{
                                         	  if (m == a || m == b || m == c || m == d || m == e || m == f || m == g || m == h || m == i || m == j || m == k || m == l) continue;

                                         	  for (int n = 1; n &lt;=16; n++)
                                          	 {
                                         	   if (n == a || n == b || n == c || n == d || n == e || n == f || n == g || n == h || n == i || n == j || n == k || n == l || n == m) continue;

                                          	   for (int o = 1; o &lt;=16; o++)
                                            	   {
                                           	    if (o == a || o == b || o == c || o == d || o == e || o == f || o == g || o == h || o == i || o == j || o == k || o == l || o == m || o == n) continue;

                                          	    for (int p = 1; p &lt;=16; p++)
                                         	   {
                                         	    if (p == a || p == b || p == c || p == d || p == e || p == f || p == g || p == h || p == i || p == j || p == k || p == l || p == m || p == n || p== o || p != 1 || p != 4 || p != 9 || p != 16) continue;

    //------------------------------Verarbeitung------------------------------------

//--------------------------------Ausgabe---------------------------------------

   cout &lt;&lt; a;
   cout &lt;&lt; b;
   cout &lt;&lt; c;
   cout &lt;&lt; d &lt;&lt;endl;
   cout &lt;&lt; e;
   cout &lt;&lt; f;
   cout &lt;&lt; g;
   cout &lt;&lt; h &lt;&lt;endl;
   cout &lt;&lt; i;
   cout &lt;&lt; j;
   cout &lt;&lt; k;
   cout &lt;&lt; l &lt;&lt;endl;
   cout &lt;&lt; m;
   cout &lt;&lt; n;
   cout &lt;&lt; o;
   cout &lt;&lt; p;
   		      }
   	      	     }
   		    }
   		   }
  		 }
   	       }
  	     }
   	    }
   	  }
  	}
       }
     }
    }
   }
  }
}
 getch ();
}
</code></pre>
<p>vielen Dank!!! ICQ344-880-222 Bitte melden wenn ihr mir helfen könnt!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/165103/hilfe-zu-schleifen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 18:09:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/165103.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Nov 2006 14:29:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 20:33:46 GMT]]></title><description><![CDATA[<p>moin ich bin neu hier und hoffe das mir jemand helfen kann!!!</p>
<p>Also ich habe eine Aufgabe bekommen da geht es um Schachtel Schleifen weiss jemand wie man das so lösen kann ( es müssen bstimmte Bedinungen erfüllt werden) wie geht das</p>
<p>meine lösunfg aber ich bekomme keine Ausgabe woran kann das liegen???</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
#include &lt;vcl\condefs.h&gt;
#include &lt;iostream.h&gt;
#include &lt;conio.h&gt;

//------------------------------Variablen---------------------------------------

//------------------------------ Eingabe----------------------------------------
void main ()
{
  cout &lt;&lt; &quot;Wohnprobleme&quot; &lt;&lt;endl;

for (int a = 1; a &lt;=16; a++)
    {
     if (a != 1 || a != 4 || a != 9 || a != 16) continue;

      for (int b = 1; b &lt;=16; b++)
      {
       if (b == a) continue;

          for (int c = 1; c &lt;=16; c++)
          {
           if (c == a || c == b) continue;
              for (int d = 1; d &lt;=16; d++)
              {
               if (d == a || d == b || d == c || d != 1 || d != 4 || d != 9 || d != 16) continue;

                  for (int e = 1; e &lt;=16; e++)
                  {
                   if (e == a || e == b || e == c || e == d) continue;

                      for (int f = 1; f &lt;=16; f++)
                      {
                       if (f == a || f == b || f == c || f == d || f == e) continue;

                          for (int g = 1; g &lt;=16; g++)
                           {
                             if (g == a || g == b || g == c || g == d || g == e || g == f) continue;

                             for (int h = 1; h &lt;=16; h++)
                             {
                              if (h == a || h == b || h == c || h == d || h == e || h == f || h == g) continue;

                                 for (int i = 1; i &lt;=16; i++)
                                 {
                                  if (i == a || i == b || i == c || i == d || i == e || i == f || i == g || i == h ) continue;

                                   for (int j = 1; j &lt;=16; j++)
                                   {
                                    if (j == a || j == b || j == c || j == d || j == e || j == f || j == g || j == h || j == i ) continue;

                                     	for (int k = 1; k &lt;=16; k++)
                                     	{
                                      	if (k == a || k == b || k == c || k == d || k == e || k == f || k == g || k == h || k == i || k == j ) continue;

                                      	  for (int l = 1; l &lt;=16; l++)
                                       	   {
                                       	    if (l == a || l == b || l == c || l == d || l == e || l == f || l == g || l == h || l == i || l == j || l == k || l != 1 || l != 4 || l != 9 || l != 16) continue;

                                          	for (int m = 1; m &lt;=16; m++)
                                          	{
                                         	  if (m == a || m == b || m == c || m == d || m == e || m == f || m == g || m == h || m == i || m == j || m == k || m == l) continue;

                                         	  for (int n = 1; n &lt;=16; n++)
                                          	 {
                                         	   if (n == a || n == b || n == c || n == d || n == e || n == f || n == g || n == h || n == i || n == j || n == k || n == l || n == m) continue;

                                          	   for (int o = 1; o &lt;=16; o++)
                                            	   {
                                           	    if (o == a || o == b || o == c || o == d || o == e || o == f || o == g || o == h || o == i || o == j || o == k || o == l || o == m || o == n) continue;

                                          	    for (int p = 1; p &lt;=16; p++)
                                         	   {
                                         	    if (p == a || p == b || p == c || p == d || p == e || p == f || p == g || p == h || p == i || p == j || p == k || p == l || p == m || p == n || p== o || p != 1 || p != 4 || p != 9 || p != 16) continue;

    //------------------------------Verarbeitung------------------------------------

//--------------------------------Ausgabe---------------------------------------

   cout &lt;&lt; a;
   cout &lt;&lt; b;
   cout &lt;&lt; c;
   cout &lt;&lt; d &lt;&lt;endl;
   cout &lt;&lt; e;
   cout &lt;&lt; f;
   cout &lt;&lt; g;
   cout &lt;&lt; h &lt;&lt;endl;
   cout &lt;&lt; i;
   cout &lt;&lt; j;
   cout &lt;&lt; k;
   cout &lt;&lt; l &lt;&lt;endl;
   cout &lt;&lt; m;
   cout &lt;&lt; n;
   cout &lt;&lt; o;
   cout &lt;&lt; p;
   		      }
   	      	     }
   		    }
   		   }
  		 }
   	       }
  	     }
   	    }
   	  }
  	}
       }
     }
    }
   }
  }
}
 getch ();
}
</code></pre>
<p>vielen Dank!!! ICQ344-880-222 Bitte melden wenn ihr mir helfen könnt!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175248</guid><dc:creator><![CDATA[Stage-6-BBB]]></dc:creator><pubDate>Wed, 15 Nov 2006 20:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 14:31:42 GMT]]></title><description><![CDATA[<p>willst du uns veräppeln?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175254</guid><dc:creator><![CDATA[...]]></dc:creator><pubDate>Wed, 15 Nov 2006 14:31:42 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 14:40:01 GMT]]></title><description><![CDATA[<p>Aufgabe</p>
<p>Wenn das das haus wäre!!<br />
A-B-C-D<br />
E-F-G-H<br />
I-J-K-L<br />
M-N-O-P</p>
<p>Die zahlen 1-16 ziehen in den Wohnungen a-p ein Die Quadratzahlen wohnen in den ecken (A,D,M,P) die 2 im ersten stock!! (I, J, K, L) im erdgeschoß werden die zahlen won links nach rechts größer!! (m&lt;n&lt;o&lt;p) Es gillt a&gt;e das heißt in a wohnt eine größere zahl al in e. außerdem h&gt;g, j&gt;i, j&gt;k, k&gt;l</p>
<p>und n*o=c+d -- i+j=k+l -- e*f=g+h !!!!!!!!!!! wo wohnen die zahlen!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175262</guid><dc:creator><![CDATA[Stage-6-BBB]]></dc:creator><pubDate>Wed, 15 Nov 2006 14:40:01 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 14:43:46 GMT]]></title><description><![CDATA[<p>1. verwende bitte die Code-Tags</p>
<p>2. du solltest deine if-Abfragen oder die Verwendung von <em>continue</em> mal überdenken<br />
z.B.</p>
<pre><code class="language-cpp">for (int a = 1; a &lt;=16; a++) 
{ 
if (a != 1 || a != 4 || a != 9 || a != 16) continue; 
...
</code></pre>
<p>schon die erste Abfrage ist immer wahr, d.h. es wird immer continue ausgeführt und das wiederum heisst, dass der Rest der For-Schleife nie abgearbeitet wird</p>
<p>3. verwende den <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39301.html" rel="nofollow">Debugger</a> um solche Fehler zu finden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175267</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 15 Nov 2006 14:43:46 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 15:02:36 GMT]]></title><description><![CDATA[<p>Danke!!</p>
<p>könntest du ein beispiel machen für eine andere if Bedingung bei a???</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175289</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175289</guid><dc:creator><![CDATA[Stage-6-BBB]]></dc:creator><pubDate>Wed, 15 Nov 2006 15:02:36 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 15:06:06 GMT]]></title><description><![CDATA[<p>warum ich? du willst das doch programmieren, also streng mal dein Hirnschmalz an<br />
bei konkreten Problemen kann man dir dann bestimmt weiterhelfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175293</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 15 Nov 2006 15:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 18:23:55 GMT]]></title><description><![CDATA[<p>Vielleicht ist das mehr was fürs Matheforum hier bei <a href="http://c-plusplus.net" rel="nofollow">c-plusplus.net</a> .</p>
<p>MfG Schlumpi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175428</guid><dc:creator><![CDATA[Schlumpi]]></dc:creator><pubDate>Wed, 15 Nov 2006 18:23:55 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE zu Schleifen!! on Wed, 15 Nov 2006 20:34:11 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=437" rel="nofollow">Jansen</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1175519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1175519</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 15 Nov 2006 20:34:11 GMT</pubDate></item></channel></rss>