摘要: 实验任务4 源代码: 点击查看代码 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 阅读全文
posted @ 2025-05-28 15:46 黄卓尔 阅读(24) 评论(0) 推荐(0)
摘要: 实验1(1) 源代码 点击查看代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int* pmin, 阅读全文
posted @ 2025-05-13 16:34 黄卓尔 阅读(30) 评论(0) 推荐(0)
摘要: 实验任务1 源代码: 点击查看代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\ 阅读全文
posted @ 2025-04-20 11:29 黄卓尔 阅读(6) 评论(0) 推荐(0)
摘要: 实验任务一 运行截图: 回答问题: 1.函数score_to_grade的功能是作为一个新函数,对输入的分数进行ABCDE的打分 形参类型:int类型 返回值类型:char类型 2.类型不匹配:ans是char类型,修改后是const char类型,与char类型不匹配 缺少break语句:导致如果 阅读全文
posted @ 2025-04-07 14:45 黄卓尔 阅读(33) 评论(0) 推荐(0)
摘要: 实验任务一 源代码: 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for (i = 0; i < 阅读全文
posted @ 2025-03-23 12:41 黄卓尔 阅读(13) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/hze305104 阅读全文
posted @ 2025-03-17 13:54 黄卓尔 阅读(26) 评论(0) 推荐(0)
摘要: 实验任务一: 源代码: 点击查看代码 #include <stdio.h> int main() { printf(" o o\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } 运行截图: ![](https://img2024.c 阅读全文
posted @ 2025-03-09 16:22 黄卓尔 阅读(19) 评论(0) 推荐(0)