12 2025 档案

摘要:task 4 #include <stdio.h> int main(){ FILE *fp; char s; int line_cnt=1; int cnt=0; fp=fopen("data4.txt","r"); if(fp==NULL){ printf("fail to open to re 阅读全文
posted @ 2025-12-30 22:52 瀮昀 阅读(8) 评论(1) 推荐(0)
摘要:task 4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 阅读全文
posted @ 2025-12-24 15:05 瀮昀 阅读(5) 评论(1) 推荐(0)
摘要:task1.1 task1_1.c ans1:find_min_max的功能是找到所输入的数字中的最大值和最小值 ans2:pmin指向最小值所对应的地址,pmax指向最大值所对应的地址 task1_2 #include <stdio.h> #define N 5 void input(int x[ 阅读全文
posted @ 2025-12-11 19:52 瀮昀 阅读(5) 评论(1) 推荐(0)