摘要:
实验任务4 #include <stdio.h> #include <ctype.h> int main() { FILE *fp; char ch; int line_count = 0; int char_count = 0; fp=fopen("C:\\Users\\li\\Downloads 阅读全文
posted @ 2025-12-31 20:12
|l|
阅读(10)
评论(1)
推荐(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 @ 2025-12-25 21:18
|l|
阅读(5)
评论(1)
推荐(0)
摘要:
实验任务1 1.函数find-min-max的功能是找到一维数组中的最大值和最小值 2.分别指向主函数中定义的变量min和max的内存地址 1.找到数组x中最大值所在的下标同时返回其对应的数组元素 2.不可以。理由ptr是int*类型而x[i]是int类型,不能将x[i]赋值给ptr 实验任务2 1 阅读全文
posted @ 2025-12-12 15:19
|l|
阅读(11)
评论(1)
推荐(0)
浙公网安备 33010602011771号