1.程序:
#include<stdio.h>
enum os
{
WIN,
LINUX,
UNIX
};
int main()
printf("%d %d %d\N",WIN,LINUX,UNIX);
return 0;
}
结果:
0 1 2N
Press any key to continue
2.程序:
WIN=1,
UNIX=12
1 2 12N
1.程序:
#include<stdio.h>
enum os
{
WIN,
LINUX,
UNIX
};
int main()
printf("%d %d %d\N",WIN,LINUX,UNIX);
return 0;
}
结果:
0 1 2N
Press any key to continue
2.程序:
WIN=1,
UNIX=12
1 2 12N