摘要: 实验任务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, int *pmax); 阅读全文
posted @ 2026-06-02 20:26 乌乌wuu 阅读(6) 评论(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\n", sizeof(x)); 阅读全文
posted @ 2026-05-05 22:31 乌乌wuu 阅读(4) 评论(0) 推荐(0)
摘要: 实验任务1 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score 阅读全文
posted @ 2026-04-19 17:58 乌乌wuu 阅读(10) 评论(0) 推荐(0)
摘要: 任务1 #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 < N; ++i) { numb 阅读全文
posted @ 2026-04-06 18:45 乌乌wuu 阅读(10) 评论(0) 推荐(0)
摘要: 实验任务1 1 #include <stdio.h> 2 3 int main() 4 { 5 printf(" o \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 9 return 0; 10 } #include <stdio.h> int main( 阅读全文
posted @ 2026-03-21 21:11 乌乌wuu 阅读(15) 评论(0) 推荐(0)