#define MON 1
#define TUE 2
#define WED 3
#define THU 4
#define FRI 5
#define SAT 6
#define SUN 7
使用 #define 来为每个整数定义一个别名
最新推荐文章于 2024-09-13 21:40:38 发布
本文介绍了如何在编程中通过预定义常量(#define)来表示星期一到星期日,展示了如何用这些宏来简化日期处理和逻辑判断。
摘要由CSDN通过智能技术生成