Autor Beitrag
rick1
Hält's aus hier
Beiträge: 5



BeitragVerfasst: So 26.04.09 17:46 
Hallo,

ich hab gerad nen schulprojekt am laufen, ein kleines autorennspiel. Jetzt will ich eine bestenliste gemacht, hab das nich über arry+record gemacht sonder nur mit record und dann gleich in die datei gespeichert. Nun muss ich allerdings noch die records nach den höchsten Punkten sortiren und irgendwie weiß ich nicht wie.

MfG Rick

Moderiert von user profile iconNarses: Überflüssige Zeilenumbrüche/Leerzeilen entfernt.
Moderiert von user profile iconNarses: Topic aus Datenbanken verschoben am So 26.04.2009 um 17:52
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 26.04.09 17:54 
Moin und :welcome: im Forum!

Schau mal hier, vielleicht kommst du damit schon weiter. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
rick1 Threadstarter
Hält's aus hier
Beiträge: 5



BeitragVerfasst: So 26.04.09 17:59 
hm danke erstmal für deine antwort, hab ich mir vorhin schon durchgelesen aber irgendwie bringts mich net weiter...
momentan habe ich wie gesagt eine datei voller records welcher nach einem bereich des records sortiert werden soll
mit einem allgemeinen sortieralgorithmus wie zB quicksort
hab schon probiert einfach den quicksort algorithmus zu nehmen und einfach auf die punktzahl anzuwenden aber da kam
dann nur arry typ erforderlich..
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 26.04.09 18:00 
Moin!

Also, in der Datei selbst zu sortieren wird eh nix (theoretisch zwar möglich, aber weder performant noch simpel). Ich würde dann schon in einem Array sortieren. :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
rick1 Threadstarter
Hält's aus hier
Beiträge: 5



BeitragVerfasst: So 26.04.09 18:07 
also soll ich jetz nen fled aus record also nen array mit typ record machen...kann ich das dann auch in die datei speichern`?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 26.04.09 19:01 
Moin!

Ich würde eher mal schauen, ob das Speichern eines Listviews zusammen mit dem Tutorial nicht der bessere Ansatz wäre: Suche in: Delphi-Forum, Delphi-Library LISTVIEW SPEICHERN

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
rick1 Threadstarter
Hält's aus hier
Beiträge: 5



BeitragVerfasst: So 26.04.09 20:31 
ok danke werd ich mal probieren