22 Mar
2001
22 Mar
'01
6:01 p.m.
Klaus F. Ãstergaard wrote:
Can anybody help my with how to make this declaration.
I want to make an array as a constant:
I have been looking in the extended Pascal ISO standard, and found some = thing like this:
type t = array [1..3] of integer; const c = t[1:1, 2:2, 3:3];
What I want is a constant called DaysInMonth[0..1, 1..12] with = containing the number of days in the particular month, the first 0..1 is = wheater it is a leap year or not.
Side note: You are aware that there is already a MonthLength function? Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html