C
cjfandhf
Unregistered / Unconfirmed
GUEST, unregistred user!
p:^Integer;
用p遍历
var
x:array[1..100]of Integer;
移动指针:
p:=@x;
for i:=1 to 100 do
begin
p^: =i;
p:=p+1
//这样不行,必须p:=Pointer(Integer(p)+sizeof(Integer));
end;
各位大虾是这样吗?
用p遍历
var
x:array[1..100]of Integer;
移动指针:
p:=@x;
for i:=1 to 100 do
begin
p^: =i;
p:=p+1
//这样不行,必须p:=Pointer(Integer(p)+sizeof(Integer));
end;
各位大虾是这样吗?