WHICHDAY.C
资源名称:C.rar [点击查看]
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:1k
源码类别:
界面编程
开发平台:
C/C++
- #include <stdio.h>
- void main(void)
- {
- enum { Monday, Tuesday, Wednesday, Thursday, Friday } day;
- for (day = Monday; day <= Friday; day++)
- if (day == Monday)
- printf("No fun---meetings all day Mondayn");
- else if (day == Tuesday)
- printf("No fun---do Monday's work todayn");
- else if (day == Wednesday)
- printf("Hump day...");
- else if (day == Thursday)
- printf("Schedule meetings for next Mondayn");
- else
- printf("Meet everyone at happy hour!n");
- }