摘要: 实验任务四 源代码task4.c 1 #include <stdio.h> 2 #include <ctype.h> 3 #include <stdlib.h> 4 int main() { 5 FILE *fp; 6 char filename[] = "data4.txt"; 7 char ch 阅读全文
posted @ 2026-06-20 23:32 wuhahahaha 阅读(6) 评论(0) 推荐(0)
摘要: 实验任务四 源代码task4.c 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 cha 阅读全文
posted @ 2026-06-15 14:20 wuhahahaha 阅读(6) 评论(0) 推荐(0)
摘要: 实验任务1 源代码task1_1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find 阅读全文
posted @ 2026-06-02 21:23 wuhahahaha 阅读(8) 评论(0) 推荐(0)
摘要: 实验任务一 源代码task1.c 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 pr 阅读全文
posted @ 2026-05-02 15:36 wuhahahaha 阅读(8) 评论(0) 推荐(0)
摘要: 实验任务1 源代码task1.c 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) 阅读全文
posted @ 2026-04-21 15:03 wuhahahaha 阅读(14) 评论(0) 推荐(1)
摘要: 实验任务一 源代码task1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 6 int main() 7 { 8 int number; 9 int i; 10 srand(time( 阅读全文
posted @ 2026-04-04 16:31 wuhahahaha 阅读(10) 评论(0) 推荐(2)
摘要: 实验任务1 源代码task1_1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 9 system("pa 阅读全文
posted @ 2026-03-21 23:02 wuhahahaha 阅读(12) 评论(0) 推荐(1)