K
kokusan
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么
const
IntAry: array[1..3] of Integer = (1, 2, 3);
正确,而
type
TRec = record
C: Char;
I: Integer;
end;
var
a, b, c: TRec;
const
Recs: array[1..3] of TRec = (a, b, c);
就出错!
相信我的意图大家一看就明白,请教如何写这个const语句呢?
const
IntAry: array[1..3] of Integer = (1, 2, 3);
正确,而
type
TRec = record
C: Char;
I: Integer;
end;
var
a, b, c: TRec;
const
Recs: array[1..3] of TRec = (a, b, c);
就出错!
相信我的意图大家一看就明白,请教如何写这个const语句呢?