摘要: Task 1_1.c: 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int *p 阅读全文
posted @ 2025-12-05 17:26 超级累的长颈鹿 阅读(0) 评论(0) 推荐(0)
摘要: Task 1: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 void test1() { 5 int x[N] = {1, 9, 8, 4}; 6 int i; 7 8 // 输出数组x占用的内存字节数 9 printf("sizeof(x) 阅读全文
posted @ 2025-11-10 17:21 超级累的长颈鹿 阅读(6) 评论(2) 推荐(0)
摘要: Task 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) { 阅读全文
posted @ 2025-10-27 09:28 超级累的长颈鹿 阅读(8) 评论(1) 推荐(0)
摘要: https://www.cnblogs.com/Carloschan-Giraffe 阅读全文
posted @ 2025-10-16 19:40 超级累的长颈鹿 阅读(4) 评论(0) 推荐(0)
摘要: Task1: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 80 6 #define N2 35 7 int main() 8 { 9 int cnt; 10 int 阅读全文
posted @ 2025-10-14 23:08 超级累的长颈鹿 阅读(4) 评论(1) 推荐(0)
摘要: 实验一 1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 printf(" O O \n"); 6 printf("<H> <H> \n"); 7 printf("I I I I \n"); 8 9 system("pause 阅读全文
posted @ 2025-09-26 12:57 超级累的长颈鹿 阅读(17) 评论(1) 推荐(0)