摘要: 实验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 @ 2025-11-16 23:17 Aaaaa叉少 阅读(7) 评论(1) 推荐(0)
摘要: 实验任务1 #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-10-30 22:03 Aaaaa叉少 阅读(4) 评论(1) 推荐(0)
摘要: 实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int random_major,random_no 阅读全文
posted @ 2025-10-19 00:53 Aaaaa叉少 阅读(9) 评论(1) 推荐(0)
摘要: 实验任务1 #include <stdio.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); system("PAUSE"); return 0; } 实验结论 实验任务1(2) 1 #include<stdio.h 阅读全文
posted @ 2025-10-09 21:03 Aaaaa叉少 阅读(6) 评论(1) 推荐(0)