摘要: 1.判断是否是闰年: #include <stdio.h> int main(void) { int year, a; printf("Please enter the year:\n"); scanf("%d",&year); if (year % 400 == 0) a = 1; else { 阅读全文
posted @ 2020-11-25 12:40 594C 阅读(969) 评论(0) 推荐(0) 编辑
摘要: #define 定义一个预处理宏 #define 标识符 字符串 #define NUM//这种也有意义 #define 宏名(形参表) 字符串 #undef 取消宏的定义 #if 编译预处理中的条件命令,相当于C语法中的if语句 #if 常量 ...程序段1... #else ...程序段2... 阅读全文
posted @ 2020-11-24 11:26 594C 阅读(83) 评论(0) 推荐(0) 编辑