摘要: task-1 源代码 #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 = 阅读全文
posted @ 2025-11-16 16:54 pp-p 阅读(4) 评论(1) 推荐(0)
摘要: task-1 源代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = 阅读全文
posted @ 2025-10-25 22:13 pp-p 阅读(7) 评论(1) 推荐(0)
摘要: task-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, ra 阅读全文
posted @ 2025-10-14 11:48 pp-p 阅读(13) 评论(1) 推荐(0)
摘要: 实验任务1 task1_1.c 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" o\n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" o\n") 阅读全文
posted @ 2025-09-27 21:00 pp-p 阅读(62) 评论(1) 推荐(0)