Autor Beitrag
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 01:15 
Uff das tut mir leid - da bin ich überfragt. Mir ist aber nochwas anderes aufgefallen - du vergleixhst die indizes - musst aber die Werte aus der liste bei diesen Indizes vergleichen.

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 01:18 
"musst aber die Werte aus der liste bei diesen Indizes vergleichen."
Okay, bin eindeutig überfordert
Ich glaub ich belss es dabei
Langsam verlässt mich der Ehrgeiz -.-
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 01:22 
Na es macht doch keinen sinn die Indizes zu vergleichen - die sind ja schon sortiert. Du möchtest doch die Werte ais der Liste Sortieren oder nicht? Also musst du auch die Werte der Liste vergleichen.

Wegen dem komischen Fehler da: probier mal '{$mode delphi}' irgendwo am Anfang der Unit - nach dem program hinzuzufügen. KA ob das funktioniert - aber ein Versuch ist es wert

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 01:24 
was sind Indizes denn eigentl überhaupt ?
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 01:25 
der Index. mehrzahl Indizes.
list[i] : list ist die Liste, i ist der Index

Frag doch gleich wennn du es nicht weißt - das hätte einiges an Verwirrung erspart ;)

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)


Zuletzt bearbeitet von Symbroson am Mi 29.11.17 01:28, insgesamt 1-mal bearbeitet
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 01:27 
Hier ich hab dir mal mein Projektordner gezippt in den Anhang gepackt - schau mal ob das funktioniert. Wenn nicht - ka
Einloggen, um Attachments anzusehen!
_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 01:30 
Also durch was genau muss ich jetzt die Indizs ersetzen?
Es müssen ja die Zahlen aus dem edit-Feld verglichen werdem, die vorher in die Liste übernommen wurden
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 01:32 
so wie du normalerweise auf eine Liste zugreifst: Liste[Index1]

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 01:45 
Okay alles klar!
Dann wirklich vielen vielen Dank für die mega Hilfe, die große Mühe, Geduld und den Zeitaufwand!!!
Und Respekt vor den skills! 8) :wink: :wink:
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 01:48 
Kein Problem :) Immer gerne :zustimm:

Hat denn jetzt der Funktionsaufruf doch noch funktioniert? Wenn ja - wo war der Fehler?

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 01:56 
Ehrlich? Nein, hat es nicht
Nicht dass du denkst es war umsonst, hast wirklich mega geholfen, aber meine Nerven sind am Ende :lol:
Also dann, Gute Nacht !! :)
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 29.11.17 02:00 
Hm ok. Kannst ja mal schauen ob du heute Nachmittag deine Delphi-Version herausbekommst. Die muss ja irgendeo in der IDE stehen. Hängt bestimmt damit irgendwie zusammen.
Gute Nacht dann - wird langsam Zeit :lol:

Heut Nachmittag könnten wir ja versuchen einfache Sortieralgorithmen zu besprechen. Dann machst du dich nicht von hunderten verschiedenen Komponenten abhängig (und verstehst die Hintergründer mancher Prinzipien besser. BubbleSort hab ich ja schon ohne einen Kommentar gezeigt. Bis dahin ist Narses bestimmt auch wieder am Start ^^ vielleicht ist er der bessere Erklärbär

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 02:20 
Ja die Version dürfte ich herausbekommen!
Das wäre supi, ansonsten lass ich es einfach komplett
Habe mich mittlerweile damit abgefunden 😅
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10181
Erhaltene Danke: 1254

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 29.11.17 09:53 
Moin!

Soo, wieder frisch am Start. :gaehn: ;)

Holla, hier ist es ja gestern Abend noch richtig abgegangen... :shock: Respekt, dass du da so lange noch mitgehalten hast. :hair: :zustimm:

Mein Ansatz wäre anders (leichter) weitergegangen, aber das ist auch etwas Geschmacksache. :nixweiss:

Du hast jetzt (schon wieder :lol:) die Quahl der Wahl: möchtest du den Weg weiter verfolgen, den user profile iconSymbroson eingeschlagen hat, oder möchtest du eventuell eine Alternative kennenlernen, die u.U. „leichter“ sein könnte (für den Anfang)?

user profile iconSymbroson hat sicher recht, wenn man Sortieralgorithmen beherrscht, ist das ein klarer Vorteil. :) Ich könnte mir allerdings vorstellen, dass es hier darum gar nicht geht. :P Das „Problem“ ist in diesem Fall wohl eher ein kleines Gimmick in einem Programm-Projekt unterzubringen, ohne dabei großen Aufwand zu betreiben. :zwinker: Vor allem wäre mir wichtig, dass ich dich beim „Helfen“ nicht abhänge (überfordere), weil du sonst eigentlich nichts gelernt hast, wenn du es später nicht selbst reproduzieren kannst. :?

Also, du entscheidest: wie geht’s weiter?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 14:52 
Ja da hast du Recht, ich will bzw muss es auch verstehen, deswegen würde ich deine Alternative, die vielleicht für mich verständlicher/einfacher scheint, bevorzugen.
Genau! Möglichst wenig Aufwand, um mein Projekt aufzupimpen. :D 8)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10181
Erhaltene Danke: 1254

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 29.11.17 16:20 
Moin!

OK, dann spulen wir geistig auf den Stand des Projektes zurück, an dem du festgestellt hast, dass die Zahlen in der Listbox zwar sortiert, aber leider als „Text“ (zeichenweise) und nicht numerisch (nach dem Zahlenwert). Das müssen wir jetzt erstmal lösen. Ideen, wie man das hinkriegt? (ignorier erstmal, dass da auch noch Spielernamen mit rein müssen)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 16:33 
Alles klar, genau!
Nee ich habe da wirklich keine Idee :?
Spielernamen hatte ich bisher nicht mit vorgesehen, aber wenn es dann nicht zu aufwendig ist bestimmt eine gute Idee
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10181
Erhaltene Danke: 1254

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 29.11.17 16:39 
Moin!

user profile iconLena00 hat folgendes geschrieben Zum zitierten Posting springen:
Nee ich habe da wirklich keine Idee :?
Woran liegt es denn (genau), dass die "Zahlen" nicht richtig sortiert werden, wenn man sie als Text (=Zeichenkette) liest? :gruebel: ;)

user profile iconLena00 hat folgendes geschrieben Zum zitierten Posting springen:
Spielernamen hatte ich bisher nicht mit vorgesehen, aber wenn es dann nicht zu aufwendig ist bestimmt eine gute Idee
Kleinkram, das machen wir nebenbei. :zustimm:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Lena00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65
Erhaltene Danke: 4



BeitragVerfasst: Mi 29.11.17 16:42 
Vielleicht dass beim Sortieren immer nur der erste "Wert" verglichen wird und die anderen Stellen vernachlässsigt werden
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10181
Erhaltene Danke: 1254

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 29.11.17 16:45 
Ja, sehr gut. Die restlichen Stellen einer "Zahl" als Text werden zwar nicht vernachlässigt (=ignoriert), aber "an der falschen Stelle" oder "nicht mit den richtigen Stellen der anderen Zahlen" verglichen, um rauszufinden, ob diese Zahl größer oder kleiner ist. :idea:

Ne Idee, wie man das ändern könnte? (muss ja nicht gleich als Delphi-Code sein, mehr so konzeptionell) :lupe:

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