F
FlashDance
Unregistered / Unconfirmed
GUEST, unregistred user!
如题,下面是不是最快生成30000长度WideString的方法?
var
I,T:Integer;
S:WideString;
begin
SetLength(S,30000);
S:='';
T:=GetTickCount;
for I:=1 to 30000do
S:=S+'中';
Form1.Caption:=FloatToStr((GetTickCount-T)/1000);
end;
var
I,T:Integer;
S:WideString;
begin
SetLength(S,30000);
S:='';
T:=GetTickCount;
for I:=1 to 30000do
S:=S+'中';
Form1.Caption:=FloatToStr((GetTickCount-T)/1000);
end;