摘要: 实验任务1 task1.c #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 阅读全文
posted @ 2026-05-03 12:42 九天风谷 阅读(9) 评论(0) 推荐(0)
摘要: 1.实验任务1 task1.c #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while (scanf("%d", &score) != EOF) { grade = sc 阅读全文
posted @ 2026-04-20 17:05 九天风谷 阅读(5) 评论(0) 推荐(0)
摘要: 1.实验任务1 源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i = 0;i<N;++i) { 阅读全文
posted @ 2026-04-07 21:45 九天风谷 阅读(3) 评论(0) 推荐(0)
摘要: ## 1.实验任务1 task1_1.c #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\ 阅读全文
posted @ 2026-03-24 23:19 九天风谷 阅读(8) 评论(0) 推荐(0)