12 2024 档案

摘要:task1: // 文件读写操作:格式化读、写文本文件 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 char author[N]; // 作者 } Book; void writ 阅读全文
posted @ 2024-12-28 16:21 落半月尘 阅读(9) 评论(0) 推荐(0)
摘要:task1: 1 #include<stdio.h> 2 #include<string.h> 3 #define N 2 4 typedef struct student{ 5 int id; 6 char name[20]; 7 char subject[20]; 8 double perf; 阅读全文
posted @ 2024-12-20 18:29 落半月尘 阅读(16) 评论(0) 推荐(0)
摘要:task1_1: 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pm 阅读全文
posted @ 2024-12-08 13:14 落半月尘 阅读(13) 评论(0) 推荐(0)