From 6f1bdc982670172dc99747b2d96ffebc15762c2b Mon Sep 17 00:00:00 2001 From: KirisameVanilla <118162831+kirisamevanilla@users.noreply.github.com> Date: Thu, 20 Nov 2025 23:33:21 +0800 Subject: [PATCH] fix: some format --- .../程序设计基础/2025-2026-1_期中_张泉.md | 29 ++++++++++--------- .../程序设计基础/2025-2026-1_期中_邬海琴.md | 25 ++++++++-------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_张泉.md b/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_张泉.md index 47476b9..2b9a8d9 100644 --- a/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_张泉.md +++ b/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_张泉.md @@ -1,5 +1,5 @@ --- -title: 2025-2026学年春季期期中(zq) +title: 2025-2026学年春季期期中(张泉) --- ## 一、判断(16 分) @@ -12,7 +12,9 @@ title: 2025-2026学年春季期期中(zq) ## 二、读代码(25 分) -1. ```c +1. a=\_\_\_\_ + + ```c #include int main() { int a = 3, b = 4; @@ -20,10 +22,10 @@ title: 2025-2026学年春季期期中(zq) printf("a=%d", a); } ``` - - a=\_\_\_\_ -2. ```c +2. a=\_\_\_\_ + + ```c #include void Anaesthesia(int b) { static int a = 0; @@ -36,9 +38,9 @@ title: 2025-2026学年春季期期中(zq) } ``` - a=\_\_\_\_ +3. \_\_\_\_, \_\_\_\_ -3. ```c + ```c #include int main() { c = 'A' + 4 - 'Z' + 'z'; @@ -47,9 +49,9 @@ title: 2025-2026学年春季期期中(zq) } ``` - \_\_\_\_, \_\_\_\_ +4. \_\_\_\_, \_\_\_\_ -4. ```c + ```c #include int main() { int a = 2; @@ -59,9 +61,9 @@ title: 2025-2026学年春季期期中(zq) } ``` - \_\_\_\_, \_\_\_\_ +5. \_\_\_\_ -5. ```c + ```c #include int main() { int a = 5, b = 10, c = 15; @@ -69,12 +71,11 @@ title: 2025-2026学年春季期期中(zq) c += 5; } else { c -= 5; - } printf("%d", c); + } + printf("%d", c); } ``` - \_\_\_\_ - ## 三、选择题(25分)(注:题面暂缺) 函数不允许嵌套定义函数(函数里不可以定义函数) diff --git a/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_邬海琴.md b/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_邬海琴.md index 3f843a7..5325a15 100644 --- a/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_邬海琴.md +++ b/docs/undergraduate/软件工程学院/程序设计基础/2025-2026-1_期中_邬海琴.md @@ -1,5 +1,5 @@ --- -title: 2025-2026学年春季期期中(whq) +title: 2025-2026学年春季期期中(邬海琴) --- ## 一、选择(20 分) 10道 @@ -12,9 +12,11 @@ title: 2025-2026学年春季期期中(whq) ## 二、填空(20 分) -1. 静态变量关键词\_\_\_\_,常态变量关键词\_\_\_\_ +1. 静态变量关键词\_\_\_\_,常态变量关键词\_\_\_\_ -2. ```c +2. \_\_\_\_ + + ```c #include int main() { int a = 3, b = 2; @@ -22,17 +24,16 @@ title: 2025-2026学年春季期期中(whq) printf("%.2f",c); } ``` - \_\_\_\_ -3. `a = 9, b = 2`,`!(a * 2 % 4) && (c = 2) || (7 - 2 * b > 2)` 输出\_\_\_\_ +3. `a = 9, b = 2`,`!(a * 2 % 4) && (c = 2) || (7 - 2 * b > 2)` 输出\_\_\_\_ -4. `unsigned int` 取值多少 \_\_\_\_ +4. `unsigned int` 取值多少 \_\_\_\_ -5. `short arr[11];` 占用\_\_\_\_ bit(s) +5. `short arr[11];` 占用\_\_\_\_ bit(s) ## 三、判断输出(20 分) -1. ```c +1. ```c #include int main() { int row = 3, col = 4, i, j; @@ -49,7 +50,7 @@ title: 2025-2026学年春季期期中(whq) } ``` -2. ```c +2. ```c #include #define SQUARE(x) x*x int main() { @@ -62,8 +63,7 @@ title: 2025-2026学年春季期期中(whq) ## 四、手写代码(40 分) - -1. 求五个数中的中位数 +1. 求五个数中的中位数 **Input** @@ -73,7 +73,7 @@ title: 2025-2026学年春季期期中(whq) > `3` -2. 求 `100~999` 的素数水仙花数,如果没有,输出`No Such Number.` +2. 求 `100~999` 的素数水仙花数,如果没有,输出`No Such Number.` **Input** @@ -82,4 +82,3 @@ title: 2025-2026学年春季期期中(whq) **Output** > `No Such Number.` -