home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_02
/
1n02038a
< prev
next >
Wrap
Text File
|
1990-07-09
|
290b
|
22 lines
----------
type
date =
record
mm : month;
dd, yy : integer;
end;
{*
* write a date in the form mm/dd/yyyy
*}
procedure write_date(d : date);
begin
with d do
writeln(ord(mm) + 1 : 1, '/', dd : 1, '/', yy : 4);
end;
Listing 3 - Using ord() in Pascal