12 2024 档案

摘要:任务4 源代码 1 #include<stdio.h> 2 int read1(){ 3 int count=0; 4 5 FILE *fp; 6 fp=fopen("datal4.txt","r"); 7 8 if(fp==NULL){ 9 printf("fail to open file to 阅读全文
posted @ 2024-12-30 09:18 松松睡不醒 阅读(8) 评论(0) 推荐(0)
摘要:任务4 源代码 1 #include<stdio.h> 2 #define N 10 3 typedef struct{ 4 char isbn[20]; 5 char name[80]; 6 char author[80]; 7 double sales_price; 8 int sales_co 阅读全文
posted @ 2024-12-20 15:25 松松睡不醒 阅读(13) 评论(0) 推荐(0)
摘要:任务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 *pmin,int 阅读全文
posted @ 2024-12-08 12:50 松松睡不醒 阅读(13) 评论(0) 推荐(0)