摘要: task 1 源代码: 1 #include<stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1(){ 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 printf("sizeof(x) = %d\n",sizeof 阅读全文
posted @ 2025-11-16 16:59 追随天光 阅读(9) 评论(1) 推荐(0)
摘要: task 1 源代码: 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 char grade; 8 9 while(scanf("%d",&score)!= EOF){ 10 阅读全文
posted @ 2025-10-28 15:07 追随天光 阅读(9) 评论(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,random 阅读全文
posted @ 2025-10-18 11:13 追随天光 阅读(7) 评论(1) 推荐(0)
摘要: task1-1 源代码: 1 #include <stdio.h> 2 int main () 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" O \n"); 8 printf("<H>\n"); 9 p 阅读全文
posted @ 2025-09-29 09:15 追随天光 阅读(99) 评论(1) 推荐(0)