level 7
function len2(i : integer) : string; overload;
function len2(s : string) : string; overload;
//.............................................
function len2( i: integer) : string; overload;
begin
if (length(IntToStr(i)) = 1) then result := '0' + inttostr(i);
if (length(IntToStr(i)) >= 2) then result := inttostr(i);
end;
function len2(s: string) : string; overload;
begin
if (length(s) = 1) then result := '0' + s;
if (length(s) >= 2) then result := s;
end;
2014年04月10日 17点04分
1
function len2(s : string) : string; overload;
//.............................................
function len2( i: integer) : string; overload;
begin
if (length(IntToStr(i)) = 1) then result := '0' + inttostr(i);
if (length(IntToStr(i)) >= 2) then result := inttostr(i);
end;
function len2(s: string) : string; overload;
begin
if (length(s) = 1) then result := '0' + s;
if (length(s) >= 2) then result := s;
end;