G
gang18
Unregistered / Unconfirmed
GUEST, unregistred user!
function password_inn(pass_in:string):string;
var
str_str:string;
str_array:array[0..12] of string;
aaa:string;
length_str,i:integer;
begin
str_str:=pass_in;
length_str:=length(str_str);
for i:=0 to length_str-1 do
str_array:=copy(str_str,i+1,1);
aaa:='';
for i:= 11 downto 0 do
aaa:=aaa+str_array;
password_inn:=aaa;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
edit1.text:=password_inn('asdfghjklpoi');
end;
调用时没有错误,可是在程序退出是,为什么会出错呢,请指教!
var
str_str:string;
str_array:array[0..12] of string;
aaa:string;
length_str,i:integer;
begin
str_str:=pass_in;
length_str:=length(str_str);
for i:=0 to length_str-1 do
str_array:=copy(str_str,i+1,1);
aaa:='';
for i:= 11 downto 0 do
aaa:=aaa+str_array;
password_inn:=aaa;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
edit1.text:=password_inn('asdfghjklpoi');
end;
调用时没有错误,可是在程序退出是,为什么会出错呢,请指教!