摘要: 任务4 源代码: #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 10 typedef struct { long id; // 准考证号 char name[20]; // 姓名 float objectiv 阅读全文
posted @ 2025-06-08 00:19 铁丝雀儿 阅读(28) 评论(0) 推荐(0)
摘要: 实验4 源代码 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 doubl 阅读全文
posted @ 2025-06-02 21:39 铁丝雀儿 阅读(18) 评论(0) 推荐(0)
摘要: 任务1(1) 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_ma 阅读全文
posted @ 2025-05-18 19:34 铁丝雀儿 阅读(29) 评论(0) 推荐(0)
摘要: 任务1 源代码: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf("sizeo 阅读全文
posted @ 2025-04-20 19:47 铁丝雀儿 阅读(20) 评论(0) 推荐(0)
摘要: 任务1 源代码: #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = sc 阅读全文
posted @ 2025-04-05 23:42 铁丝雀儿 阅读(41) 评论(0) 推荐(0)
摘要: 实验结论 任务1: 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(time 阅读全文
posted @ 2025-03-22 14:51 铁丝雀儿 阅读(18) 评论(0) 推荐(0)
摘要: 任务1: 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() 5 { 6 printf(" o \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 printf(" o \n"); 10 阅读全文
posted @ 2025-03-08 17:41 铁丝雀儿 阅读(18) 评论(0) 推荐(0)