A
andyzhouap98111
Unregistered / Unconfirmed
GUEST, unregistred user!
能解释一下下面的作用吗最好每一句都说下,特别是set of 的意思
type
TMyBoolean = Boolean;
TMyBooleanSet = set of TMyBoolean;
TWeekDay = (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
TOffDays = set of TWeekDay;
TWorkDays = set of TWeekDay
var
BSet: TMyBooleanSet;
ODays: TOffDays;
WDays: TWorkDays;
...
BSet := [True];
ODays := [Sat, Sun];
WDays := [Mon, Tue] + [Wed, Thu, Fri] + ODays - [Sun];
type
TMyBoolean = Boolean;
TMyBooleanSet = set of TMyBoolean;
TWeekDay = (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
TOffDays = set of TWeekDay;
TWorkDays = set of TWeekDay
var
BSet: TMyBooleanSet;
ODays: TOffDays;
WDays: TWorkDays;
...
BSet := [True];
ODays := [Sat, Sun];
WDays := [Mon, Tue] + [Wed, Thu, Fri] + ODays - [Sun];