12 2024 档案

摘要:实验任务4 #include <stdio.h> int main(){ int x=0,y=1;char c; FILE *fp; fp=fopen("data4.txt","r"); if(fp == NULL) { printf("fail to open file to read\n"); 阅读全文
posted @ 2024-12-29 22:22 seleucus 阅读(13) 评论(0) 推荐(0)
摘要:实验任务4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i 阅读全文
posted @ 2024-12-22 13:03 seleucus 阅读(14) 评论(0) 推荐(0)
摘要:实验1 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax); i 阅读全文
posted @ 2024-12-08 17:41 seleucus 阅读(14) 评论(0) 推荐(0)