摘要: 实验一 #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-05 00:01 zjcblogs 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 实验一 #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 @ 2024-10-24 17:23 zjcblogs 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 实验一 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int random_ 阅读全文
posted @ 2024-10-09 21:00 zjcblogs 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 任务一 1-1 #include<stdio.h> int main() { printf(" O "); printf("<H>"); printf("I I"); printf(" O "); printf("<H>"); printf("I I"); return 0; } 1-2 #incl 阅读全文
posted @ 2024-09-25 22:51 zjcblogs 阅读(16) 评论(0) 推荐(0) 编辑