摘要: 前三个实验代码均已进行验证并运行 Task.4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sa 阅读全文
posted @ 2025-12-23 14:33 Linch114514 阅读(4) 评论(1) 推荐(0)
摘要: 实验任务1 问题1:找数组中的最大值和最小值 问题2:主函数中定义的min和max变量的地址 int a[N]; int min, max; printf("录入%d个数据:\n", N); input(a, N); printf("数据是: \n"); output(a, N); printf(" 阅读全文
posted @ 2025-12-12 13:57 Linch114514 阅读(7) 评论(1) 推荐(0)
摘要: task.1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; 阅读全文
posted @ 2025-11-16 19:31 Linch114514 阅读(9) 评论(1) 推荐(0)
摘要: task.1 #include<stdio.h> char score_to_grade(int score); int main(){ int score; char grade; while(scanf("%d",&score)!=EOF){ grade=score_to_grade(score 阅读全文
posted @ 2025-10-30 10:56 Linch114514 阅读(14) 评论(1) 推荐(0)
摘要: https://home.cnblogs.com/u/Linch114514 阅读全文
posted @ 2025-10-19 14:08 Linch114514 阅读(7) 评论(0) 推荐(0)
摘要: 一、实验目的 1. 能正确使用if语句实现分支结构 2. 能正确使用while语句、do...while语句实现循环结构 3. 能在具体问题场景中正确区分、使用continue和break 4. 能灵活、组合使用c语句编程解决简单应用问题 二、实验准备 实验前,请复习第3章以下内容: 1. 分支语句 阅读全文
posted @ 2025-10-19 14:06 Linch114514 阅读(29) 评论(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-10-09 19:06 Linch114514 阅读(21) 评论(1) 推荐(0)