K
kp1150
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var
s,s1: String;
p,p1: Pointer;
begin
s := 'abcdef';
s1 := s;
p := Pointer(s);
//showmessage(IntToStr(integer(@(s[1]))));{这句话注不注释掉会有影响么}
showmessage(IntToStr(integer(s)));//S地址
showmessage(IntToStr(integer(s1)));//S地址
showmessage(IntToStr(integer(p)));//S地址
showmessage(pchar(p)^);
end;
var
s,s1: String;
p,p1: Pointer;
begin
s := 'abcdef';
s1 := s;
p := Pointer(s);
//showmessage(IntToStr(integer(@(s[1]))));{这句话注不注释掉会有影响么}
showmessage(IntToStr(integer(s)));//S地址
showmessage(IntToStr(integer(s1)));//S地址
showmessage(IntToStr(integer(p)));//S地址
showmessage(pchar(p)^);
end;