Autor Beitrag
futuretec
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Di 17.06.08 14:42 
Hallo,

gegeben eine ListBox, in die Zahlen (Integer) eingegeben werden..

gesucht ein Algorithmus der die Zahlen aufsteigend sortiert (aber nicht die sort funktion von ListBox) --> bsp: 1,2,4,12,23,48,usw.

vielen dank für eure hilfe

(brauche nur den algorithmus komplett für die Listbox ...

mfg
futuretec


Moderiert von user profile iconNarses: Topic aus Algorithmen, Optimierung und Assembler verschoben am Di 17.06.2008 um 17:27
Moderiert von user profile iconNarses: Titel geändert, eine Beispiel-Liste für zu sortierende Zahlen im Titel wird wohl nicht nötig sein ;)
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 17.06.08 14:50 
Hi! :welcome: im Forum!

Wie schaut denn Dein Ansatz aus? ;)

Grüße,
Marc
futuretec Threadstarter
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Di 17.06.08 15:01 
hab gehört das kann man in nem art array, oder ne liste "zwischenspeichern" und dann halt soriteren und dann zurückrufen .. ?!

sry Delphi = *beurk* :D

mfg
futuretec
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Di 17.06.08 15:24 
ne listbox is schon ne art array, wär also ziemlich blöd das in ein array zu speichern
futuretec Threadstarter
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Di 17.06.08 15:48 
sry bin nicht so tief in delphi verankert ..

kannst du mir die komplette prozedur kurz tippen? denk das ist für dich ne arbeit von 5min ..
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 17.06.08 16:13 
Moin!

user profile iconfuturetec hat folgendes geschrieben:
kannst du mir die komplette prozedur kurz tippen? denk das ist für dich ne arbeit von 5min ..
Wir machen hier keine Hausaufgaben :roll: aber wir helfen dir gerne, das Programm zu entwicklen. ;)

cu
Narses

//EDIT: :welcome:

_________________
There are 10 types of people - those who understand binary and those who don´t.