摘要: 试验任务四 #include<stdio.h> #include<ctype.h> #define N 100 int main(){ FILE *fp; char filename[N]="date4.txt"; char ch; int kong=0; int fu=0; fp=fopen(fi 阅读全文
posted @ 2025-12-28 19:24 干的蒸棒 阅读(5) 评论(1) 推荐(0)
摘要: 试验任务四 #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-21 16:54 干的蒸棒 阅读(9) 评论(1) 推荐(0)
摘要: 试验任务一 1.. 函数 find_min_max 功能是判断数组中数据的最大和最小值。 2。x[0]所对应的数据 3。找到数组中最大值的地址,返回数组中最大值的地址。 4。可以。一种是下标的交换。一种元素的交换。 试验任务二 1。80个字节,s1所占字节数,s1字符串长度 2。不可以,char 【 阅读全文
posted @ 2025-12-07 14:04 干的蒸棒 阅读(11) 评论(1) 推荐(0)
摘要: 试验任务一1.一维数组x在内存中连续存放, x和&x[0]的值相同2.二维数组x在内存中是按行连续存放, x、 x[0]和&x[0][0]的值相同, x[0]和x[1]相差16个字节试验任务二形参是x【】,实参是下x.input:储存输入的n个数据compete;计算去除最大值和最小值后的平均数试验 阅读全文
posted @ 2025-11-14 17:27 干的蒸棒 阅读(14) 评论(1) 推荐(0)
摘要: 试验任务一 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score 阅读全文
posted @ 2025-10-25 12:07 干的蒸棒 阅读(11) 评论(1) 推荐(0)
摘要: 实验任务一 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int random_major,random_no; s 阅读全文
posted @ 2025-10-14 16:27 干的蒸棒 阅读(7) 评论(1) 推荐(0)
摘要: 实验任务一 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; 阅读全文
posted @ 2025-09-27 16:53 干的蒸棒 阅读(17) 评论(1) 推荐(0)