home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
GENCSRC.ZIP
/
ENUM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1987-11-21
|
537b
|
21 lines
/* Chapter 6 - Program 3 */
main()
{
enum {win,tie,bye,lose,no_show} result;
enum {sun,mon,tues,wed,thur,fri,sat} days;
result = win;
printf(" win = %d\n",result);
result = lose;
printf(" lose = %d\n",result);
result = tie;
printf(" tie = %d\n",result);
result = bye;
printf(" bye = %d\n",result);
result = no_show;
printf("no show = %d\n\n",result);
for(days = mon;days < fri;days++)
printf("The day code is %d\n",days);
}