摘要: task1.c 1 #include <stdio.h> 2 #define N 100 3 // 函数声明 4 void input(int x[][N], int n); 5 void output(int x[][N], int n); 6 int is_magic(int x[][N], i 阅读全文
posted @ 2026-05-05 17:58 禾言1108 阅读(11) 评论(0) 推荐(0)
摘要: task1.c 1 #include<stdio.h> 2 char score_to_grade(int score); 3 4 int main() { 5 int score; 6 char grade; 7 8 while(scanf("%d",&score)!=EOF){ 9 grade 阅读全文
posted @ 2026-04-21 21:57 禾言1108 阅读(7) 评论(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)); 12 fo 阅读全文
posted @ 2026-04-06 22:02 禾言1108 阅读(3) 评论(0) 推荐(0)
摘要: 实验任务1 task1_1.c 1 // 打印一个字符小人 2 3 #include<stdio.h> 4 int main() 5 { 6 printf(" o \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 10 return 0; 11 } task 阅读全文
posted @ 2026-03-22 17:42 禾言1108 阅读(4) 评论(0) 推荐(0)