摘要: 实验任务一 源代码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 10 pr 阅读全文
posted @ 2026-05-02 15:36 wuhahahaha 阅读(5) 评论(0) 推荐(0)
摘要: 实验任务1 源代码task1.c 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) 阅读全文
posted @ 2026-04-21 15:03 wuhahahaha 阅读(13) 评论(0) 推荐(1)
摘要: 实验任务一 源代码task1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 6 int main() 7 { 8 int number; 9 int i; 10 srand(time( 阅读全文
posted @ 2026-04-04 16:31 wuhahahaha 阅读(8) 评论(0) 推荐(2)
摘要: 实验任务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 9 system("pa 阅读全文
posted @ 2026-03-21 23:02 wuhahahaha 阅读(9) 评论(0) 推荐(1)