摘要: test1 源代码 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 printf("sizeof(x) = %d\n", sizeo 阅读全文
posted @ 2025-11-16 17:18 柯序 阅读(11) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 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){ 7 grade=sc 阅读全文
posted @ 2025-10-30 21:43 柯序 阅读(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_no; s 阅读全文
posted @ 2025-10-19 21:05 柯序 阅读(10) 评论(2) 推荐(0)
摘要: Experiment 1 实验任务1 1.1 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I 阅读全文
posted @ 2025-10-08 17:24 柯序 阅读(15) 评论(1) 推荐(0)