<?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[Brauche Hilfe! (Lottoprogramm)]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich hab ein kleines Lotto-Programm geschrieben. Zweck des Programms ist es, nach der Eingabe von z.B. 12 verschiedenen Zahlen, alle Möglichen 6er-Zahlenkombinationen aufzulisten.</p>
<p>Beispiel:</p>
<p>Meine gewählten Zahlen sind: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,11, 12</p>
<p>Die Ausgabe des Programms:</p>
<p>Kombination Nr.1: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;6&gt;<br />
Kombination Nr.2: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;7&gt;<br />
Kombination Nr.3: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;8&gt;<br />
Kombination Nr.4: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;9&gt;<br />
Kombination Nr.5: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;10&gt;<br />
Kombination Nr.6: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;11&gt;<br />
Kombination Nr.7: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;12&gt;<br />
Kombination Nr.8: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;7&gt;<br />
Kombination Nr.9: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;8&gt;<br />
Kombination Nr.10: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;9&gt;<br />
Kombination Nr.11: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;10&gt;<br />
Kombination Nr.12: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;11&gt;<br />
Kombination Nr.13: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;12&gt;<br />
Kombination Nr.14: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;7&gt; &lt;8&gt;</p>
<p>.... usw bis<br />
Kombination Nr.X: &lt;7&gt; &lt;8&gt; &lt;9&gt; &lt;10&gt; &lt;11&gt; &lt;12&gt;</p>
<p>Mein Problem:</p>
<p>Bei der Ausgabe von z.B. 9 oder 10 vorher eingegeben Zahlen funktioniert alles ohne Probleme.<br />
Bei der Eingabe von 11 Zaheln und mehr, fängt mein Problem an. Ab einer Kombination Nr.xy werden alle vorher aufgelisteten Kombination von den neuen Kombinationen überschrieben.</p>
<p>Z.B wird Kombination Nr.1 gelöscht sobald Kombination Nr.xy+1 ausgegeben wird und Kombination Nr.2 wird gelöscht, sobald Kombination Nr.xy+2 hinzukommt.</p>
<p>Ich habe seit mehereren Tagen alles ausprobiert, aber ich krieg es nicht hin alle Kombinationen aufzulisten.</p>
<p>Ich muss auch erwähnen, dass ich ein absoluter Neuling bin, was auch evtl. meine Denk- bzw Programmierfehler erklärt <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</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120956/brauche-hilfe-lottoprogramm</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 13:50:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120956.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Sep 2005 10:25:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 10:25:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich hab ein kleines Lotto-Programm geschrieben. Zweck des Programms ist es, nach der Eingabe von z.B. 12 verschiedenen Zahlen, alle Möglichen 6er-Zahlenkombinationen aufzulisten.</p>
<p>Beispiel:</p>
<p>Meine gewählten Zahlen sind: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,11, 12</p>
<p>Die Ausgabe des Programms:</p>
<p>Kombination Nr.1: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;6&gt;<br />
Kombination Nr.2: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;7&gt;<br />
Kombination Nr.3: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;8&gt;<br />
Kombination Nr.4: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;9&gt;<br />
Kombination Nr.5: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;10&gt;<br />
Kombination Nr.6: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;11&gt;<br />
Kombination Nr.7: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;5&gt; &lt;12&gt;<br />
Kombination Nr.8: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;7&gt;<br />
Kombination Nr.9: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;8&gt;<br />
Kombination Nr.10: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;9&gt;<br />
Kombination Nr.11: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;10&gt;<br />
Kombination Nr.12: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;11&gt;<br />
Kombination Nr.13: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;6&gt; &lt;12&gt;<br />
Kombination Nr.14: &lt;1&gt; &lt;2&gt; &lt;3&gt; &lt;4&gt; &lt;7&gt; &lt;8&gt;</p>
<p>.... usw bis<br />
Kombination Nr.X: &lt;7&gt; &lt;8&gt; &lt;9&gt; &lt;10&gt; &lt;11&gt; &lt;12&gt;</p>
<p>Mein Problem:</p>
<p>Bei der Ausgabe von z.B. 9 oder 10 vorher eingegeben Zahlen funktioniert alles ohne Probleme.<br />
Bei der Eingabe von 11 Zaheln und mehr, fängt mein Problem an. Ab einer Kombination Nr.xy werden alle vorher aufgelisteten Kombination von den neuen Kombinationen überschrieben.</p>
<p>Z.B wird Kombination Nr.1 gelöscht sobald Kombination Nr.xy+1 ausgegeben wird und Kombination Nr.2 wird gelöscht, sobald Kombination Nr.xy+2 hinzukommt.</p>
<p>Ich habe seit mehereren Tagen alles ausprobiert, aber ich krieg es nicht hin alle Kombinationen aufzulisten.</p>
<p>Ich muss auch erwähnen, dass ich ein absoluter Neuling bin, was auch evtl. meine Denk- bzw Programmierfehler erklärt <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</p>
]]></description><link>https://www.c-plusplus.net/forum/post/874774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/874774</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Sun, 18 Sep 2005 10:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 13:44:22 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Das ist in der Tat ein merkwüdiges Verhalten. Noch merwürdiger wäre aber, wenn jemand ohne ein Stück Code dazu etwas sagen könnte....</p>
<p>Also ein bißchen mehr Informationen können nicht schaden, denn Du hast nur über die Funktionalität Deines Programms Auskunft gegeben, nicht über die Realisierung.</p>
<p>Wenn Du den Code nicht preisgeben willst, dann probier es mit einem Debugger....</p>
<p>Grüße<br />
Richie</p>
<p>P.S.: Vor dem Posten den Code aufs Wesentliche kürzen. Vielleicht entdeckst Du dann sogar selber den Fehler...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/874944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/874944</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Sun, 18 Sep 2005 13:44:22 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 17:12:54 GMT]]></title><description><![CDATA[<p>Grundsätzlich tipp beim lösen eine problems mit einem leichten beispiel anfangen. In diesem konkretten fall meine ich das du zum beispiel. von der zahlen reihe 1,2,3,4,5 alle 2 kombinationen auflisten kannst. Und dann würd ich dir empfehlen als eine allgemeiner funktion zu schreiben.</p>
<p>Die folgendes könnes sollte. Übergenen wird ein vector mit einer beliebegen anzahl von elementen (überprüfung auf doppelte!) und als 2 parameter anzahl der kombinations größe.</p>
<pre><code class="language-cpp">void ausgabe_kombinationen(vector&lt;int&gt; Zahlenfeld,int kombigroesse);
</code></pre>
<p>P.S. wenn du es nicht schaffst einfach sagen, dann post ich dir den restlichen code, aber lieber mal selber probieren</p>
<p>mfg spjoe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875058</guid><dc:creator><![CDATA[spjoe]]></dc:creator><pubDate>Sun, 18 Sep 2005 17:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 17:17:35 GMT]]></title><description><![CDATA[<p>Tut mir Leid hier kommt der Code.</p>
<p>Irgendwie finde ich das der Fehler überall sein könnte, deswegen poste ich den gesamten Code rein:</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;

int Stelle1, Stelle2, Stelle3, Stelle4, Stelle5, Stelle6;
int max6, max5, max4, max3, max2;

int main()

{	int i;
	int Anfangszahlen;
	cin &gt;&gt; Anfangszahlen;
	float * Zahlen = new float[Anfangszahlen];
	Zahlen[0] = 12.4f;
	delete [] Zahlen;
	cout &lt;&lt; &quot;\n&quot;;

	for (i=0; i&lt;Anfangszahlen; i++) 
	{
		cout &lt;&lt; &quot;Zahl Nr.&quot; &lt;&lt; i+1 &lt;&lt; &quot;: &quot;;
		cin &gt;&gt; Zahlen[i];
	}

	cout &lt;&lt; &quot;\n&quot;;

Stelle1=0;
Stelle2=1;
Stelle3=2;
Stelle4=3;
Stelle5=4;
Stelle6=5;
max6=Anfangszahlen-1;
max5=Anfangszahlen-2;
max4=Anfangszahlen-3;
max3=Anfangszahlen-4;
max2=Anfangszahlen-5;

	{

		{while (Stelle6&lt;=max6)

				{	
								{
									cout &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle1] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle2] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle3] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle4] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle5] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle6] &lt;&lt; &quot;&gt; &quot;; 
									cout &lt;&lt; &quot;\n&quot;;
									Stelle6=Stelle6+1;
								}

				}

		}	

	}

	{Stelle5=Stelle5+1;
	 Stelle6=Stelle5+1;

	 {while (Stelle6&lt;=max6)

				{	
								{
									cout &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle1] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle2] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle3] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle4] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle5] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle6] &lt;&lt; &quot;&gt; &quot;; 
									cout &lt;&lt; &quot;\n&quot;;
									Stelle6=Stelle6+1;
									if (Stelle6&gt;max6)
									{Stelle5=Stelle5+1;
									Stelle6=Stelle5+1;}
								}	
				}
	 }

	}

	{Stelle4=Stelle4+1;
	 Stelle5=Stelle4+1;
	 Stelle6=Stelle5+1;

		{while (Stelle6&lt;=max6)

				{	
								{
									cout &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle1] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle2] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle3] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle4] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle5] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle6] &lt;&lt; &quot;&gt; &quot;; 
									cout &lt;&lt; &quot;\n&quot;;
									Stelle6=Stelle6+1;
									if (Stelle6&gt;max6)
									{Stelle5=Stelle5+1;
									Stelle6=Stelle5+1;}
									if (Stelle5&gt;max5)
									{Stelle4=Stelle4+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
								}	
				}
		}
	}

	{Stelle3=Stelle3+1;
	 Stelle4=Stelle3+1;
	 Stelle5=Stelle4+1;
	 Stelle6=Stelle5+1;

		{while (Stelle6&lt;=max6)

				{	
								{
									cout &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle1] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle2] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle3] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle4] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle5] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle6] &lt;&lt; &quot;&gt; &quot;; 
									cout &lt;&lt; &quot;\n&quot;;
									Stelle6=Stelle6+1;
									if (Stelle6&gt;max6)
									{Stelle5=Stelle5+1;
									Stelle6=Stelle5+1;}
									if (Stelle5&gt;max5)
									{Stelle4=Stelle4+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
									if (Stelle4&gt;max4)
									{Stelle3=Stelle3+1;
									 Stelle4=Stelle3+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
								}	
				}
		}
	}

	{Stelle2=Stelle2+1;
	 Stelle3=Stelle2+1;
	 Stelle4=Stelle3+1;
	 Stelle5=Stelle4+1;
	 Stelle6=Stelle5+1;

		{while (Stelle6&lt;=max6)

				{	
								{
									cout &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle1] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle2] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle3] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle4] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle5] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle6] &lt;&lt; &quot;&gt; &quot;; 
									cout &lt;&lt; &quot;\n&quot;;
									Stelle6=Stelle6+1;
									if (Stelle6&gt;max6)
									{Stelle5=Stelle5+1;
									Stelle6=Stelle5+1;}
									if (Stelle5&gt;max5)
									{Stelle4=Stelle4+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
									if (Stelle4&gt;max4)
									{Stelle3=Stelle3+1;
									 Stelle4=Stelle3+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;
									if (Stelle3&gt;max3)
									{Stelle2=Stelle2+1;
									 Stelle3=Stelle2+1;
									 Stelle4=Stelle3+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
								}	
				}
		}
	}

	{Stelle1=Stelle1+1;
	 Stelle2=Stelle1+1;
	 Stelle3=Stelle2+1;
	 Stelle4=Stelle3+1;
	 Stelle5=Stelle4+1;
	 Stelle6=Stelle5+1;

		{while (Stelle6&lt;=max6)

				{	
								{
									cout &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle1] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle2] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle3] &lt;&lt; &quot;&gt; &quot; 
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle4] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle5] &lt;&lt; &quot;&gt; &quot;
										 &lt;&lt; &quot;\t&quot; &lt;&lt; &quot; &lt;&quot; &lt;&lt; Zahlen[Stelle6] &lt;&lt; &quot;&gt; &quot;; 
									cout &lt;&lt; &quot;\n&quot;;
									Stelle6=Stelle6+1;
									if (Stelle6&gt;max6)
									{Stelle5=Stelle5+1;
									Stelle6=Stelle5+1;}
									if (Stelle5&gt;max5)
									{Stelle4=Stelle4+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
									if (Stelle4&gt;max4)
									{Stelle3=Stelle3+1;
									 Stelle4=Stelle3+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;
									if (Stelle3&gt;max3)
									{Stelle2=Stelle2+1;
									 Stelle3=Stelle2+1;
									 Stelle4=Stelle3+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;
									if (Stelle2&gt;max2)
									{Stelle1=Stelle1+1;
									 Stelle2=Stelle1+1;
									 Stelle3=Stelle2+1;
									 Stelle4=Stelle3+1;
									 Stelle5=Stelle4+1;
									 Stelle6=Stelle5+1;}
								}	
				}
		}
	}
		}
	}
	}

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/875066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875066</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Sun, 18 Sep 2005 17:17:35 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 17:21:17 GMT]]></title><description><![CDATA[<p>schau dir mal was über verschachtelte schleifen an, das wirst du hier sicher gebrauchen!!</p>
<p>mfg spjoe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875068</guid><dc:creator><![CDATA[spjoe]]></dc:creator><pubDate>Sun, 18 Sep 2005 17:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 17:33:02 GMT]]></title><description><![CDATA[<p>*hust*</p>
<p>Ich habe es mir jetzt nicht genauer angeschaut, aber an welcher Stelle gibst Du denn den Speicher frei <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>Was ich damit meine ist, dass Du delete viel zu früh aufrufst. Du gibst den reservierten Speicherbereich wieder frei.</p>
<p>Ich habe es nicht weiter getestet, aber so etwas kann sehr unschönes Programmverhalten auslösen.</p>
<p>Ansonsten gewöhne Dir ein paar mehr Funktionen an, oder besser, wenn Du schon C++ benutzt Objktorientierte Programmierung.</p>
<p>Grüße<br />
Richie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875082</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Sun, 18 Sep 2005 17:33:02 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 18:11:37 GMT]]></title><description><![CDATA[<p>Wie schon erwähnt bin ich ein Anfänger <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="😉"
    /> Das erklärt auch meinen sehr schlechten Programmierstil.</p>
<p>Ok ich werde mir eure Tipps mal genauer anschaun und versuchen diese in mein Programm umzusetzen.</p>
<p>Wo meinst du ist es am besten den Speicherbereich wieder freizugeben.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875121</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Sun, 18 Sep 2005 18:11:37 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 19:29:01 GMT]]></title><description><![CDATA[<p>Also wenn ich mich jetzt nicht ganz fies vertan habe, kommst Du beim Deinem Beispiel auf runde 479 Mio. Moeglichkeiten - Du solltest Du Dir den grundsaetlichen Ansatz Deines Projectes noch mal ueberlegen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875205</guid><dc:creator><![CDATA[MBCS-CITP]]></dc:creator><pubDate>Sun, 18 Sep 2005 19:29:01 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 21:11:46 GMT]]></title><description><![CDATA[<p>Nein das kann nicht sein. Nach meinen Berechnungen müssten das bei 12 verschiedenen Zahlen unter 1000 verschiedene Kombinationen geben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875283</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Sun, 18 Sep 2005 21:11:46 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 21:27:15 GMT]]></title><description><![CDATA[<p>ohne berücksichtigung der reihnfolge(lotto) ist die formel für die anzahl der möglichkeiten: n über k, sprich 12 über 6 = 924</p>
<p>mfg spjoe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875292</guid><dc:creator><![CDATA[spjoe]]></dc:creator><pubDate>Sun, 18 Sep 2005 21:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Sun, 18 Sep 2005 21:44:07 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ein delete solltest Du dann aufrufen, wenn Du das Objekt nicht mehr benötigst.<br />
D.h.: Hier am Besten am Ende des Programms als letzte Anweisung in main.</p>
<p>Grüße<br />
Richie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875305</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Sun, 18 Sep 2005 21:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Mon, 19 Sep 2005 09:24:24 GMT]]></title><description><![CDATA[<p>spjoe schrieb:</p>
<blockquote>
<p>ohne berücksichtigung der reihnfolge(lotto) ist die formel für die anzahl der möglichkeiten: n über k, sprich 12 über 6 = 924</p>
<p>mfg spjoe</p>
</blockquote>
<p>Genau das ist richtig.</p>
<p>Richie_Gecco schrieb:</p>
<blockquote>
<p>Hi!</p>
<p>Ein delete solltest Du dann aufrufen, wenn Du das Objekt nicht mehr benötigst.<br />
D.h.: Hier am Besten am Ende des Programms als letzte Anweisung in main.</p>
<p>Grüße<br />
Richie</p>
</blockquote>
<p>Ok habe es geändert. Leider besteht das Problem immer noch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875528</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Mon, 19 Sep 2005 09:24:24 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Mon, 19 Sep 2005 11:18:05 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Kannst Du bitte nochmal genau beschreiben, was Dein Problem ist?</p>
<p>Ich habe das gerade mal mit Watcom durchkompiliert. Nach der delete Änderung sieht die Ausgabe recht gut aus.<br />
Das Einzige, was anzumerken wäre, dass bei mir die Windows-Konsole die ersten Ausgaben wegschneidet. Aber das ist normal.</p>
<p>Kannst Du bitte mal ganz genau erklären, was Du mit löscht die ersten Kombinationen meinst?</p>
<p>Grüße<br />
Richie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875600</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Mon, 19 Sep 2005 11:18:05 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Mon, 19 Sep 2005 15:22:18 GMT]]></title><description><![CDATA[<p>Richie_Gecco schrieb:</p>
<blockquote>
<p>Das Einzige, was anzumerken wäre, dass bei mir die Windows-Konsole die ersten Ausgaben wegschneidet. Aber das ist normal.</p>
</blockquote>
<p>Genau das war/ist mein Problem- Aber wenns normal ist, muss ich wohl damit leben. Oder gibt es einen Ausweg, dass ich alle Kombinationen trotzdem irgendwie aufgelistet bekomme.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/875878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/875878</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Mon, 19 Sep 2005 15:22:18 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Mon, 19 Sep 2005 20:15:15 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Du kannst die größe der Konsole ändern (unter XP getestet). Und zwar links klick auf das Symbol in der oberen linken Ecke. Dort Eigenschaften -&gt; Layout und unter Fensterpuffergrüße kannst Du die Anzahl von Zeilen eingeben.</p>
<p>Ansonsten Ausgabe in eine Datei umlenken.</p>
<p>D.h. In der Konsole:<br />
Programmname &gt; Ausgabe.txt</p>
<p>Dann kannst Du das bequem weiterverwerten.</p>
<p>Grüße<br />
Richie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876111</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Mon, 19 Sep 2005 20:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Mon, 19 Sep 2005 20:31:51 GMT]]></title><description><![CDATA[<p>Vielen Dank Richie_Gecco. Es hat bestens geklappt. Habe die Größe verändert und schon funktioniert alles wie erwünscht.</p>
<p>Danke auch an alle anderen, die mir geholfen haben.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876126</guid><dc:creator><![CDATA[nitrofx]]></dc:creator><pubDate>Mon, 19 Sep 2005 20:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe! (Lottoprogramm) on Mon, 19 Sep 2005 21:38:13 GMT]]></title><description><![CDATA[<p>Gern geschehen!</p>
<p>Und bleib am Ball!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876160</guid><dc:creator><![CDATA[Richie_Gecco]]></dc:creator><pubDate>Mon, 19 Sep 2005 21:38:13 GMT</pubDate></item></channel></rss>