30-07-2024, Saat: 23:12
(30-07-2024, Saat: 11:13)Hayati Adlı Kullanıcıdan Alıntı:procedure TForm1.GenerateCombinations; var i, j: Integer; combination: string; begin for i := 0 to 7 do // 2^3 - 1 = 7, tüm 3 bitli kombinasyonlar begin combination := ''; for j := 0 to 2 do begin if (i and (1 shl j)) <> 0 then combination := '1' + combination else combination := '0' + combination; end; ListBox1.Items.Add(combination); end; end;
procedure TForm1.GenerateCombinations; var i, j: Integer; combination: string; begin for i := 0 to 15 do // 2^4 - 1 = 15, tüm 4 bitli kombinasyonlar begin combination := ''; for j := 0 to 3 do begin if (i and (1 shl j)) <> 0 then combination := '1' + combination else combination := '0' + combination; end; ListBox1.Items.Add(combination); end; end;
gibi bir şey mi?
Evet yeterli 32 veya 64 bit en fazla 96 bit e kadar kullanacağım.
Çok Teşekkür ederim sorun çözüldü Saygılar iyi çalışmalar

