摘要: 实验任务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("size 阅读全文
posted @ 2025-11-16 17:37 humeop 阅读(3) 评论(0) 推荐(0)
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() 6 { 7 int score; 8 char grade; 9 10 while(scanf("%d", &score) != EOF 阅读全文
posted @ 2025-10-29 19:40 humeop 阅读(7) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main(){ 10 int cnt; 1 阅读全文
posted @ 2025-10-18 15:44 humeop 阅读(7) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 #include<stdio.h> int main() { printf(" o \n"); printf("<h>\n"); printf("I I\n"); return 0; } 运行截图 tast1-1 源代码 1 #include<stdio.h> 2 3 int m 阅读全文
posted @ 2025-09-30 13:08 humeop 阅读(8) 评论(1) 推荐(0)