摘要: 实验1 代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 // 输出数组x占用的内 阅读全文
posted @ 2026-05-05 23:34 AmanoTook0 阅读(6) 评论(0) 推荐(0)
摘要: 实验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) != E 阅读全文
posted @ 2026-04-21 00:28 AmanoTook0 阅读(7) 评论(0) 推荐(0)
摘要: 实验1 代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 int main() 6 { 7 int number; 8 int i; 9 srand(time(0)); // 以当前系统 阅读全文
posted @ 2026-04-13 20:43 AmanoTook0 阅读(3) 评论(0) 推荐(0)
摘要: 实验1 代码 1 // 打印一个字符小人 2 3 #include<stdio.h> 4 #include<stdlib.h> 5 int main() 6 { 7 printf(" O \n"); 8 printf("<H>\n"); 9 printf("I I\n"); 10 11 printf 阅读全文
posted @ 2026-03-18 14:20 AmanoTook0 阅读(13) 评论(0) 推荐(0)