摘要: 实验结论: task1.c 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 pri 阅读全文
posted @ 2026-05-05 13:07 everleaf1616 阅读(4) 评论(0) 推荐(0)
摘要: 任务一 源代码: 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) { 7 grad 阅读全文
posted @ 2026-04-21 21:32 everleaf1616 阅读(4) 评论(0) 推荐(0)
摘要: task1.c 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main(){ 8 int number; 9 int i; 10 11 srand(time(0)) 阅读全文
posted @ 2026-04-03 22:08 everleaf1616 阅读(7) 评论(0) 推荐(0)
摘要: 实验结论 源代码 task1_1.c 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main() 5 { 6 printf(" o \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 printf(" o \ 阅读全文
posted @ 2026-03-19 19:55 everleaf1616 阅读(9) 评论(0) 推荐(0)