L
lxx2008
Unregistered / Unconfirmed
GUEST, unregistred user!
PB函数
integer i
integer j
string vs1
string vs2
string vs
vs1 = f_rtol(sstr)
vs2 = f_rtol(skey)
j = 1
vs = ""
for i = 1 to len(sstr)
vs = vs + char(asc(mid(vs1,i,1)) + asc(mid(vs2,j,1)))
if j >= len(skey) then
j = 1
else
j = j + 1
end if
next
return vs
--->>>以下为我转化的delphi函数
编译提示incompatible types错误——————???????
Function f_code_ys(sstr,skey: string): String;
var vs1,vs2,vs:string; i,j: integer;
begin
vs1 := f_rtol(sstr);
vs2 := f_rtol(skey);
j := 1 ;
vs :='' ;
for i := 1 to length(sstr) do
vs:= vs+chr(ord(copy(vs1,i,1))+ord(copy(vs2,j,1)));
if j >= length(skey) then
j:= 1
else
j:= j+1;
end if
next ;
result:=vs;
end;
integer i
integer j
string vs1
string vs2
string vs
vs1 = f_rtol(sstr)
vs2 = f_rtol(skey)
j = 1
vs = ""
for i = 1 to len(sstr)
vs = vs + char(asc(mid(vs1,i,1)) + asc(mid(vs2,j,1)))
if j >= len(skey) then
j = 1
else
j = j + 1
end if
next
return vs
--->>>以下为我转化的delphi函数
编译提示incompatible types错误——————???????
Function f_code_ys(sstr,skey: string): String;
var vs1,vs2,vs:string; i,j: integer;
begin
vs1 := f_rtol(sstr);
vs2 := f_rtol(skey);
j := 1 ;
vs :='' ;
for i := 1 to length(sstr) do
vs:= vs+chr(ord(copy(vs1,i,1))+ord(copy(vs2,j,1)));
if j >= length(skey) then
j:= 1
else
j:= j+1;
end if
next ;
result:=vs;
end;