摘要: 实验四 #define _CRT_SECURE_NO_WARNINGS #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> int main() { FILE* fp; int line = 0; 阅读全文
posted @ 2025-12-26 16:16 浔匿 阅读(9) 评论(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-19 17:38 浔匿 阅读(11) 评论(1) 推荐(0)
摘要: task1_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 阅读全文
posted @ 2025-12-11 17:06 浔匿 阅读(15) 评论(1) 推荐(0)
摘要: 实验任务1 问题一 连续 相同 问题二 连续 相同 16 一行元素的总内存长度即4*N 实验任务2 问题一 x为数组名 形参int x[] 实参x 问题二 输入N个数字,存入一维数组x 将输入的数字去掉最大值与最小值,计算剩余数字的平均数 实验任务3 问题一 x为数组名 形参int x[][N] 实 阅读全文
posted @ 2025-11-11 22:29 浔匿 阅读(13) 评论(1) 推荐(0)
摘要: 实验任务1 任务1 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> char score_to_grade(int score); int main(){ int score; char grade; while (scanf("%d", &sco 阅读全文
posted @ 2025-10-24 15:25 浔匿 阅读(18) 评论(1) 推荐(0)
摘要: 实验任务1 #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_n 阅读全文
posted @ 2025-10-14 00:17 浔匿 阅读(22) 评论(1) 推荐(0)
摘要: 实验任务1.1 #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-26 21:39 浔匿 阅读(12) 评论(2) 推荐(0)