kann mir mal bitte einer diesen Quellcode erklären:
Delphi-Quellcode:
procedure encode(key:integer);
var
i,j,k,pos:integer;
s:string;
done:tpoint;
const
letters:string='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890ßöäüÖÄÜ,.;-_+*~#''?\=}][{&%$³²$§"°^<>|µ€@';
begin
for i:=0 to form1.memo1.lines.Count do
for j:=1 to length(form1.memo1.lines.Strings[i]) do
for k:=1 to length(letters) do
if byte(form1.memo1.lines.Strings[i][j])=byte(letters[k]) then
begin
if not ((done.x=i) and (done.y=j)) then
begin
pos:=k+key;
while pos>length(letters) do
pos:=pos-length(letters);
while pos<1 do
pos:=pos+length(letters);
s:=form1.memo1.lines.strings[i];
s[j]:=letters[pos];
form1.memo1.lines.Strings[i]:=s;
done.X:=i;
done.Y:=j;
end;
end;
Also meine fragen:bei Count werden die Buchstaben gezählt oder??Und was macht "length"??
Was macht der Befehl "done.X:=i;"???
Vielen Dank!!