摘要: task1 // 文件读写操作:格式化读、写文本文件 #include <stdio.h> #include <stdlib.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 char author[N]; // 作 阅读全文
posted @ 2025-06-09 10:06 乐一乐路过 阅读(12) 评论(0) 推荐(0)
摘要: task1 #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, int* pmax); 阅读全文
posted @ 2025-05-18 14:51 乐一乐路过 阅读(12) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i 阅读全文
posted @ 2025-04-20 23:31 乐一乐路过 阅读(12) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while (scanf("%d", &score) != EOF) { grade = score_to_gra 阅读全文
posted @ 2025-04-09 21:17 乐一乐路过 阅读(18) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for(i = 0; 阅读全文
posted @ 2025-03-23 15:05 乐一乐路过 阅读(12) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/610haha 阅读全文
posted @ 2025-03-16 14:48 乐一乐路过 阅读(10) 评论(0) 推荐(0)
摘要: task1 代码 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 截图 task2 代码 #include <stdio.h> int main() { do 阅读全文
posted @ 2025-03-10 13:04 乐一乐路过 阅读(11) 评论(0) 推荐(0)