第八章完结
This commit is contained in:
36
Chapter8/enum.c
Normal file
36
Chapter8/enum.c
Normal file
@@ -0,0 +1,36 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
enum day
|
||||
{
|
||||
MON = 1,
|
||||
TUS,
|
||||
THR,
|
||||
WES,
|
||||
FRI,
|
||||
SAT,
|
||||
SUN
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
STATE_RUNNING = 1,
|
||||
STATE_CANCELED,
|
||||
STATE_OVER
|
||||
};
|
||||
|
||||
// struct job_st
|
||||
// {
|
||||
// int id;
|
||||
// int state;
|
||||
// time_t start, end;
|
||||
// };
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
// enum day a = MON;
|
||||
|
||||
|
||||
exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user