//把你的x,y 放到edit1中
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
S1, s2: char;
sChar: string;
i, j, k, l, n, m: integer;
txt: TextFile;
iii, iCount: integer;
stmp, S: string;begin
sChar := '';
for s1 := '0' to '9' do
sChar := sChar + s1; for s1 := 'A' to 'Z' do
sChar := sChar + s1; for s1 := 'a' to 'z' do
sChar := sChar + s1; iCount := length(sChar);
//你提供的 xy assignfile(txt, 'e:\1\1.txt'); if FileExists('e:\1\1.txt') then
Append(txt)
else
rewrite(txt);
for iii := 1 to 2 do begin
s := edit1.text[iii]; //edit1.text='yx';
for i := 1 to iCount do
begin
sTmp := s + sChar[i];
Writeln(txt, stmp);
for j := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j];
Writeln(txt, stmp);
for k := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k];
Writeln(txt, stmp);
{//减少运行时间 ;看你的密码有几位
for l := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k] + sChar[l];
Writeln(txt, stmp);
for m := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k] + sChar[l] + sChar[m];
Writeln(txt, stmp);
for n := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k] + sChar[l] + sChar[m] + sChar[n];
Writeln(txt, stmp); end;
end;
end;
}
end; end;
end; end;
closefile(txt);
end;
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
S1, s2: char;
sChar: string;
i, j, k, l, n, m: integer;
txt: TextFile;
iii, iCount: integer;
stmp, S: string;begin
sChar := '';
for s1 := '0' to '9' do
sChar := sChar + s1; for s1 := 'A' to 'Z' do
sChar := sChar + s1; for s1 := 'a' to 'z' do
sChar := sChar + s1; iCount := length(sChar);
//你提供的 xy assignfile(txt, 'e:\1\1.txt'); if FileExists('e:\1\1.txt') then
Append(txt)
else
rewrite(txt);
for iii := 1 to 2 do begin
s := edit1.text[iii]; //edit1.text='yx';
for i := 1 to iCount do
begin
sTmp := s + sChar[i];
Writeln(txt, stmp);
for j := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j];
Writeln(txt, stmp);
for k := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k];
Writeln(txt, stmp);
{//减少运行时间 ;看你的密码有几位
for l := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k] + sChar[l];
Writeln(txt, stmp);
for m := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k] + sChar[l] + sChar[m];
Writeln(txt, stmp);
for n := 1 to iCount do
begin
sTmp := s + sChar[i] + sChar[j] + sChar[k] + sChar[l] + sChar[m] + sChar[n];
Writeln(txt, stmp); end;
end;
end;
}
end; end;
end; end;
closefile(txt);
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货