Hallo,
ich suche das passende Wort für dieses Ergebnis:
000
100
010
001
110
101
011
111
Das Beispiel zeigt alle Moeglichkeiten mit 0 und 1 in einer 3-Kette. (Ich will das in einer 7-Kette programieren.
Wie heisst das Fachwort nachdem ich suchen muss. Ich will es nicht rekursiv haben.
Gerd
Moderiert von Narses: Beiträge zusammengefasst Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
| for a:=0 to 1 do begin zahl[1]:=a; for b:=0 to 1 do begin zahl[2]:=b; for c:=0 to 1 do begin zahl[3]:=c; memo1.Lines.add(inttostr(zahl[1])+' '+inttostr(zahl[2])+' '+ inttostr(zahl[3])); end; end; end; |
es ist gar nicht so schwer wie ich dachte.