会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
594C
博客园
首页
新随笔
联系
订阅
管理
2020年11月25日
比较有趣的C语言小程序
摘要: 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
阅读(1109)
评论(0)
推荐(0)
2020年11月24日
常用预处理命令及解释
摘要: #define 定义一个预处理宏 #define 标识符 字符串 #define NUM//这种也有意义 #define 宏名(形参表) 字符串 #undef 取消宏的定义 #if 编译预处理中的条件命令,相当于C语法中的if语句 #if 常量 ...程序段1... #else ...程序段2...
阅读全文
posted @ 2020-11-24 11:26 594C
阅读(131)
评论(0)
推荐(0)
公告