摘要: 3. 1.\与 ’ 组成转义字符输出为 ‘ 2. i < N 确保循环不会超过song[ i ]的最大容量 4. 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <ctype.h> 4 5 int main() { 阅读全文
posted @ 2025-12-26 19:34 .hh 阅读(9) 评论(1) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char aut 阅读全文
posted @ 2025-12-20 13:54 .hh 阅读(10) 评论(1) 推荐(0)
摘要: 1.1c 1.find_min_max的作用是查找数组a[N]中的最大值和最小值 2.pmin指向数组a中的最小值min,pmax指向数组a中的最大值max 1.2c 1.查找数组a[N]中的最大值,返回数组a[N]最大的地址 2.可以 2.1c 1.80,sizeof(s1)计算s1数组的大小,s 阅读全文
posted @ 2025-12-07 17:05 .hh 阅读(10) 评论(1) 推荐(0)
摘要: 4. 5. 6. 7. 阅读全文
posted @ 2025-11-16 15:50 .hh 阅读(13) 评论(0) 推荐(0)
摘要: 1.(1)是连续存放 , x和&x[0]的值相同 (2)二维数组在内存中是按行连续存放的 ,x、x[0]和&x[0][0]的值相同 2.(1)形参int x[] , int n 实参x, n (2)标准输入读取 n个整数,并依次存储到一维数组 x[ ]中 计算数组 x中 n个元素的平均值,但去除一个 阅读全文
posted @ 2025-11-16 15:40 .hh 阅读(7) 评论(1) 推荐(0)
摘要: 1.(1)将输入的数转为等级,形参类型int,返回值类型char (2)没有break会让输入一个数后有多值输出,如输入就是会从A输出然后输出B直至到E 2.(1)计算出输入的这个数的各位数之和 (2)能,原函数是使用循环迭代思维,提取各位数字累加。后一种是递归思维,当前位数字 + 剩余数字的各位和 阅读全文
posted @ 2025-10-30 15:51 .hh 阅读(9) 评论(1) 推荐(0)
摘要: 1.问题一:如果没有这行代码srand(time(NULL)),rand 生成的随机数序列会是固定的,失去了 “随机” 的意义。 问题二:随机生成学号 2.问题一:total_price = 0; 去掉会使上一次购买金额加到此次上 问题二:continue语义,在该次程序运行中用户输入不满足if() 阅读全文
posted @ 2025-10-16 01:16 .hh 阅读(8) 评论(1) 推荐(0)
摘要: #include <stdio.h> int main() { int i; for (i = 0; i < 2; i++) { printf(" O \n"); printf("<H>\n"); printf("I I\n"); } return 0; } #include <stdio.h> i 阅读全文
posted @ 2025-09-30 13:48 .hh 阅读(13) 评论(1) 推荐(0)