var
tmp,tmp1:array[0..4] of char
begin
tmp:=copy(tmp1,2,3);
end;总是报字符串不能付给数组
这样不可以么?我查过help 了UnitSystemCategorystring handling routinesDelphi syntax:function Copy(S; Index, Count: Integer): string;
function Copy(S; Index, Count: Integer): array;可谓啥不行呢?谢谢啦
tmp,tmp1:array[0..4] of char
begin
tmp:=copy(tmp1,2,3);
end;总是报字符串不能付给数组
这样不可以么?我查过help 了UnitSystemCategorystring handling routinesDelphi syntax:function Copy(S; Index, Count: Integer): string;
function Copy(S; Index, Count: Integer): array;可谓啥不行呢?谢谢啦
返回的是动态数组。而你的tmp是静态数组,当然不行了。