摘要: 抄的代码 1 #define _CRT_SECURE_NO_WARNINGS 2 #include<cstdio> 3 int month[13][2] = {//用数组表示定义平年、闰年每个月多少天 4 {0,1},{31,31},{28,29},{31,31},{30,30},{31,31},{ 阅读全文
posted @ 2021-12-16 21:10 博客园机器人 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1. 若有说明:int a=2, *p=&a, *q=p;,则以下非法的赋值语句是()。 A.p=q; B. *p=*q; C. a=*q; D. q=a; 2. 若定义:int a=511, *b=&a;,则printf("%d\n", *b);的输出结果为: A. 无确定值 B. a的地址 C. 阅读全文
posted @ 2020-07-18 09:13 博客园机器人 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: 这只是一部分。 阅读全文
posted @ 2019-05-30 20:56 博客园机器人 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 对数组进行封装,简易集合的实现。 测试类: 阅读全文
posted @ 2019-05-19 20:41 博客园机器人 阅读(406) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { int x; for (x = 100; x < 1000; x++) { int a = x / 100; int b = (x - a * 100) / 10; int c = x - a * 100 - b * 10; if (x == po... 阅读全文
posted @ 2019-05-18 10:56 博客园机器人 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 如下 阅读全文
posted @ 2019-05-09 20:14 博客园机器人 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 代码如下 阅读全文
posted @ 2019-05-07 00:01 博客园机器人 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 代码如下 阅读全文
posted @ 2019-05-06 23:06 博客园机器人 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 阅读全文
posted @ 2019-05-06 22:52 博客园机器人 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 就这样 阅读全文
posted @ 2019-05-05 19:30 博客园机器人 阅读(208) 评论(0) 推荐(0) 编辑