2025年12月26日

摘要: 任务4 1 #include <stdio.h> 2 #define N 10 3 typedef struct { 4 char isbn[20]; // isbn号 5 char name[80]; // 书名 6 char author[80]; // 作者 7 double sales_pr 阅读全文
posted @ 2025-12-26 07:43 johnwzq 阅读(6) 评论(1) 推荐(0)

2025年12月12日

摘要: 任务1-1 1.把数组中最大最小值赋给相应地址变量 2.min和max的地址 任务1-2 1.找到数组最大值,返回最早出现的最大值元素的地址。 2.可以 任务2 1.80Byte,s1占用字节数,s1实际上在\0截断前的占用字节数 2.不行。s1是地址常量。应该使用strcpy函数进行字符串拷贝赋值 阅读全文
posted @ 2025-12-12 15:53 johnwzq 阅读(17) 评论(1) 推荐(0)

2025年11月17日

摘要: 1 #include <stdio.h> 2 #define N 10 3 int det[N+1][N+1]; 4 5 void input(int n); 6 int cpt(int n); 7 void rxk(int n,int r,int k);//ÐеÄÊý³Ë 8 void r_k( 阅读全文
posted @ 2025-11-17 18:13 johnwzq 阅读(21) 评论(0) 推荐(0)
 
摘要: task1 1.是连续存放的,相等。 2.按行连续存放。三者相同。差值16byte,含义是一行四个int值共占4*sizeof(int)==16字节 task2 1.形参是x[ ],实参是x. 2.遍历输入长度为n的数组x 算出所有得分去掉最高最低分的均分 task 3 1.形参x[ ][N],实参 阅读全文
posted @ 2025-11-17 15:53 johnwzq 阅读(15) 评论(1) 推荐(0)

2025年10月31日

摘要: 任务1 1 #include <stdio.h> 2 char score_to_grade(int score); // 函数声明 3 int main() { 4 int score; 5 char grade; 6 while(scanf("%d", &score) != EOF) { 7 g 阅读全文
posted @ 2025-10-31 17:26 johnwzq 阅读(9) 评论(1) 推荐(0)

2025年10月20日

摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int r;//random_major,random_no; 阅读全文
posted @ 2025-10-20 16:11 johnwzq 阅读(15) 评论(0) 推荐(0)
 
摘要: 实验任务一 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 int main(){ 9 int cnt; 10 int r 阅读全文
posted @ 2025-10-20 15:53 johnwzq 阅读(14) 评论(1) 推荐(0)