Autor Beitrag
sventestic
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 20

WIN XP
Delphi 6, Html
BeitragVerfasst: So 15.10.06 22:50 
Hi leute ich hab ne repeat until schleife... und hab ein array vom typ boolean... in der schleife wird mit zufall gewürfelt und es soll solange gehen bis mein array generell false ist (alle schubladen:=false)... jetzt wollte ich fragen wie ich das machen kann ohne jedes element einzeln mit  and (array[...]=false) and ... hat einer ne coole idee oder sollte ich das anders anfangen? Ach ich erzahl euch mal was so dadrin passiert, nicht das ihr mir alle while do empfehlt ;) also ein array (typ string) ist genauso groß wie das boolean, das andere kleinere enthalt strings die ins andere an der true stelle rein sollen... (soll halt zufällig sein) hoffe das reicht als beschreibung ;)
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 15.10.06 22:53 
Hallo!

Zähl doch einfach, wie oft Du ein Element des Arrays auf "false" gesetzt hast. Wenn Du das so oft gemacht hast, wie es Elemente im Array gibt, bist Du fertig.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
sventestic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 20

WIN XP
Delphi 6, Html
BeitragVerfasst: So 15.10.06 22:56 
hey die idee is cool danke ;)
(*man bin ich fertig hätte selbst drauf kommen könnem ;) *)
sventestic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 20

WIN XP
Delphi 6, Html
BeitragVerfasst: So 15.10.06 23:44 
Ha jetzt hats auch gefunzt ;)