摘要: 实验4 代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char author[8 阅读全文
posted @ 2026-06-16 16:46 AmanoTook0 阅读(2) 评论(0) 推荐(0)
摘要: 实验1 task.1 代码 1 #include <stdio.h> 2 #define N 5 3 #include <stdlib.h> 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_ 阅读全文
posted @ 2026-06-02 22:15 AmanoTook0 阅读(5) 评论(0) 推荐(0)
摘要: 实验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 阅读(7) 评论(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 阅读(4) 评论(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 阅读(14) 评论(0) 推荐(0)