摘要: 任务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)=%\n",sizeof(x)); 10 for (i= 阅读全文
posted @ 2025-11-11 20:43 仇昕泽 阅读(16) 评论(1) 推荐(0)
摘要: 任务1 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_grade( 阅读全文
posted @ 2025-10-25 23:11 仇昕泽 阅读(14) 评论(1) 推荐(0)
摘要: 实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 80 6 #define N2 35 7 int main() { 8 int cnt; 9 int ran 阅读全文
posted @ 2025-10-14 16:11 仇昕泽 阅读(10) 评论(1) 推荐(0)
摘要: 实验任务1 垂直小人 1 // 打印一个字符小人 2 #include <stdio.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O \n"); 9 printf("< 阅读全文
posted @ 2025-09-26 21:49 仇昕泽 阅读(14) 评论(1) 推荐(0)