摘要: 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 = 0;i<N;+ 阅读全文
posted @ 2024-11-09 21:33 凌司书 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task.1 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gra 阅读全文
posted @ 2024-10-26 19:14 凌司书 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task.1 #include <stdio.h> #include <stdio.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int rando 阅读全文
posted @ 2024-10-12 19:03 凌司书 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 任务1 1.1 #include<stdio.h> int main() { int i=1; while(i<3) {printf(" o \n"); printf("<H>\n"); printf("I I\n"); i++; } return 0; } 1.2 #include<stdio.h 阅读全文
posted @ 2024-09-27 18:33 凌司书 阅读(10) 评论(0) 推荐(0) 编辑