O
oldzhang
Unregistered / Unconfirmed
GUEST, unregistred user!
自定义结构如下:
TPokerNum = Array[0..15] of byte;
TPlayer=record
id,name:string;
send,save:TPokerNum;
curr:0..36;
detail:Array[1..36] of byte;
end;
var
Player:Array[0..5] of TPlayer;
通过以下的运算:
with Player do
begin
send[0]:=send[0]+1;
send[pokerid]:=send[pokerid]+1;
curr:=curr+k;
detail[curr]:=poker;
end;
数据出现异常,暂停程序,通过Watch、EVaulate查看数据,发现无法访问到Player[1]、Player[2]、Player[5]数据,请问这是哪里的问题?是数据结构本身定义的有问题,还是用法有问题
TPokerNum = Array[0..15] of byte;
TPlayer=record
id,name:string;
send,save:TPokerNum;
curr:0..36;
detail:Array[1..36] of byte;
end;
var
Player:Array[0..5] of TPlayer;
通过以下的运算:
with Player do
begin
send[0]:=send[0]+1;
send[pokerid]:=send[pokerid]+1;
curr:=curr+k;
detail[curr]:=poker;
end;
数据出现异常,暂停程序,通过Watch、EVaulate查看数据,发现无法访问到Player[1]、Player[2]、Player[5]数据,请问这是哪里的问题?是数据结构本身定义的有问题,还是用法有问题