使用string时,一定要先使用SetLength()函数吗?
如:
var
   str1:string;
begin
   SetLength(str1, 10);
end;
如果不用函数,会造成内存泄漏等问题吗?