B
by007
Unregistered / Unconfirmed
GUEST, unregistred user!
TMYRrc=Record
name:string[10];
id:integer;
sex:byte;
age:byte;
end;
pMYRec=^TMYRrc;
//----------------------------------------------------
var
pMYRecA,pMYRecBMYRec;
pMYRecA:=NEW(pMYRec);
pMYRecA.NAME:='林';
pMYRecA.id:='林';
pMYRecA.sex:=1;
pMYRecA.age:=20;
//我想把 pMYRecA内的字段数值复制,pMYRecB内,但pMYRecB和pMYRecA不使用相同地址,也就是说,操作pMYRecA对pMYRecB没影响,pMYRecB和pMYRecA是独立的,如何使用简单办法实现?
name:string[10];
id:integer;
sex:byte;
age:byte;
end;
pMYRec=^TMYRrc;
//----------------------------------------------------
var
pMYRecA,pMYRecBMYRec;
pMYRecA:=NEW(pMYRec);
pMYRecA.NAME:='林';
pMYRecA.id:='林';
pMYRecA.sex:=1;
pMYRecA.age:=20;
//我想把 pMYRecA内的字段数值复制,pMYRecB内,但pMYRecB和pMYRecA不使用相同地址,也就是说,操作pMYRecA对pMYRecB没影响,pMYRecB和pMYRecA是独立的,如何使用简单办法实现?