摘要: 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 阅读(6) 评论(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 阅读(7) 评论(1) 推荐(0)
摘要: https://home.cnblogs.com/u/Linch114514 阅读全文
posted @ 2025-10-19 14:08 Linch114514 阅读(6) 评论(0) 推荐(0)
摘要: 一、实验目的 1. 能正确使用if语句实现分支结构 2. 能正确使用while语句、do...while语句实现循环结构 3. 能在具体问题场景中正确区分、使用continue和break 4. 能灵活、组合使用c语句编程解决简单应用问题 二、实验准备 实验前,请复习第3章以下内容: 1. 分支语句 阅读全文
posted @ 2025-10-19 14:06 Linch114514 阅读(21) 评论(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 阅读(16) 评论(1) 推荐(0)