<?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[Sortieralgorithmus]]></title><description><![CDATA[<p>Hallo</p>
<p>Hab versucht einen eigen Sortieralgorithmus zu schreiben läuft aber nicht<br />
Ich möchte immer in einem Feld beanachbarte Zahlen vergleichen.Und tauschen falls die erste Zahl größer ist als die zweite. Ende falls in einem Durchgang kein Tausch mehr stattfindet.</p>
<p>void __fastcall TForm1::Button2Click(TObject <em>Sender)<br />
{<br />
ListBox1-&gt;Clear();<br />
int</em>zahlenfeld = new int[11];<br />
zahlenfeld[1] = StrToInt(Form1-&gt;Edit1-&gt;Text);<br />
zahlenfeld[2] = StrToInt(Form1-&gt;Edit2-&gt;Text);<br />
zahlenfeld[3] = StrToInt(Form1-&gt;Edit3-&gt;Text);<br />
zahlenfeld[4] = StrToInt(Form1-&gt;Edit4-&gt;Text);<br />
zahlenfeld[5] = StrToInt(Form1-&gt;Edit5-&gt;Text);<br />
zahlenfeld[6] = StrToInt(Form1-&gt;Edit6-&gt;Text);<br />
zahlenfeld[7] = StrToInt(Form1-&gt;Edit7-&gt;Text);<br />
zahlenfeld[8] = StrToInt(Form1-&gt;Edit8-&gt;Text);<br />
zahlenfeld[9] = StrToInt(Form1-&gt;Edit9-&gt;Text);<br />
zahlenfeld[10] = StrToInt(Form1-&gt;Edit10-&gt;Text);</p>
<p>for<br />
{<br />
(if 11[y]&gt; 11[y+1]);<br />
( 11[y], 11[y+1]);</p>
<p>}while 11[y]&lt; 11[y+1];<br />
{<br />
ListBox1-&gt;Items-&gt;Add(IntToStr(zahlenfeld));<br />
}<br />
//---------------------------------------------------------------------------</p>
<p>Danke schon mal im Voraus <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/topic/181824/sortieralgorithmus</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 11:05:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181824.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 May 2007 19:03:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sortieralgorithmus on Thu, 17 May 2007 19:03:52 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Hab versucht einen eigen Sortieralgorithmus zu schreiben läuft aber nicht<br />
Ich möchte immer in einem Feld beanachbarte Zahlen vergleichen.Und tauschen falls die erste Zahl größer ist als die zweite. Ende falls in einem Durchgang kein Tausch mehr stattfindet.</p>
<p>void __fastcall TForm1::Button2Click(TObject <em>Sender)<br />
{<br />
ListBox1-&gt;Clear();<br />
int</em>zahlenfeld = new int[11];<br />
zahlenfeld[1] = StrToInt(Form1-&gt;Edit1-&gt;Text);<br />
zahlenfeld[2] = StrToInt(Form1-&gt;Edit2-&gt;Text);<br />
zahlenfeld[3] = StrToInt(Form1-&gt;Edit3-&gt;Text);<br />
zahlenfeld[4] = StrToInt(Form1-&gt;Edit4-&gt;Text);<br />
zahlenfeld[5] = StrToInt(Form1-&gt;Edit5-&gt;Text);<br />
zahlenfeld[6] = StrToInt(Form1-&gt;Edit6-&gt;Text);<br />
zahlenfeld[7] = StrToInt(Form1-&gt;Edit7-&gt;Text);<br />
zahlenfeld[8] = StrToInt(Form1-&gt;Edit8-&gt;Text);<br />
zahlenfeld[9] = StrToInt(Form1-&gt;Edit9-&gt;Text);<br />
zahlenfeld[10] = StrToInt(Form1-&gt;Edit10-&gt;Text);</p>
<p>for<br />
{<br />
(if 11[y]&gt; 11[y+1]);<br />
( 11[y], 11[y+1]);</p>
<p>}while 11[y]&lt; 11[y+1];<br />
{<br />
ListBox1-&gt;Items-&gt;Add(IntToStr(zahlenfeld));<br />
}<br />
//---------------------------------------------------------------------------</p>
<p>Danke schon mal im Voraus <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/1286976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286976</guid><dc:creator><![CDATA[Kleiner Programmierer]]></dc:creator><pubDate>Thu, 17 May 2007 19:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Sortieralgorithmus on Thu, 17 May 2007 19:11:09 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-181787-and-start-is-0.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-181787-and-start-is-0.html</a> <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=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286983</guid><dc:creator><![CDATA[kaffee]]></dc:creator><pubDate>Thu, 17 May 2007 19:11:09 GMT</pubDate></item></channel></rss>