type
TCon = class
private
i, j : Integer;
public
function Runtest : string; overload;
function Runtest(Value : string) : string; overload;
end;
implementation
{ TCon }
function TCon.Runtest: string;
begin
i := 1;
while i <= 4 do
begin
j := i;
while j <= 5 do
begin
Result := Result + ' ' + IntToStr(j);
Inc(j);
end;
Inc(i);
end;
end;
function TCon.Runtest(Value: string): string;
begin
Result := Value;
i := 1;
while i <= 3 do
begin
j := i;
while j <= 5 do
begin
Result := Result + ' ' + IntToStr(j);
Inc(j);
end;
Inc(i);
end;
end;
end.</code>作者: a_c_e06 時間: 2012-5-12 03:20:42