fix: some format
This commit is contained in:
parent
f5b37a17c9
commit
6f1bdc9826
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: 2025-2026学年春季期期中(zq)
|
title: 2025-2026学年春季期期中(张泉)
|
||||||
---
|
---
|
||||||
|
|
||||||
## 一、判断(16 分)
|
## 一、判断(16 分)
|
||||||
|
|
@ -12,7 +12,9 @@ title: 2025-2026学年春季期期中(zq)
|
||||||
|
|
||||||
## 二、读代码(25 分)
|
## 二、读代码(25 分)
|
||||||
|
|
||||||
1. ```c
|
1. a=\_\_\_\_
|
||||||
|
|
||||||
|
```c
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
int main() {
|
int main() {
|
||||||
int a = 3, b = 4;
|
int a = 3, b = 4;
|
||||||
|
|
@ -21,9 +23,9 @@ title: 2025-2026学年春季期期中(zq)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
a=\_\_\_\_
|
2. a=\_\_\_\_
|
||||||
|
|
||||||
2. ```c
|
```c
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
void Anaesthesia(int b) {
|
void Anaesthesia(int b) {
|
||||||
static int a = 0;
|
static int a = 0;
|
||||||
|
|
@ -36,9 +38,9 @@ title: 2025-2026学年春季期期中(zq)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
a=\_\_\_\_
|
3. \_\_\_\_, \_\_\_\_
|
||||||
|
|
||||||
3. ```c
|
```c
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
int main() {
|
int main() {
|
||||||
c = 'A' + 4 - 'Z' + 'z';
|
c = 'A' + 4 - 'Z' + 'z';
|
||||||
|
|
@ -47,9 +49,9 @@ title: 2025-2026学年春季期期中(zq)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
\_\_\_\_, \_\_\_\_
|
4. \_\_\_\_, \_\_\_\_
|
||||||
|
|
||||||
4. ```c
|
```c
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
int main() {
|
int main() {
|
||||||
int a = 2;
|
int a = 2;
|
||||||
|
|
@ -59,9 +61,9 @@ title: 2025-2026学年春季期期中(zq)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
\_\_\_\_, \_\_\_\_
|
5. \_\_\_\_
|
||||||
|
|
||||||
5. ```c
|
```c
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
int main() {
|
int main() {
|
||||||
int a = 5, b = 10, c = 15;
|
int a = 5, b = 10, c = 15;
|
||||||
|
|
@ -69,12 +71,11 @@ title: 2025-2026学年春季期期中(zq)
|
||||||
c += 5;
|
c += 5;
|
||||||
} else {
|
} else {
|
||||||
c -= 5;
|
c -= 5;
|
||||||
} printf("%d", c);
|
}
|
||||||
|
printf("%d", c);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
\_\_\_\_
|
|
||||||
|
|
||||||
## 三、选择题(25分)(注:题面暂缺)
|
## 三、选择题(25分)(注:题面暂缺)
|
||||||
|
|
||||||
函数不允许嵌套定义函数(函数里不可以定义函数)
|
函数不允许嵌套定义函数(函数里不可以定义函数)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: 2025-2026学年春季期期中(whq)
|
title: 2025-2026学年春季期期中(邬海琴)
|
||||||
---
|
---
|
||||||
|
|
||||||
## 一、选择(20 分) 10道
|
## 一、选择(20 分) 10道
|
||||||
|
|
@ -14,7 +14,9 @@ title: 2025-2026学年春季期期中(whq)
|
||||||
|
|
||||||
1. 静态变量关键词\_\_\_\_,常态变量关键词\_\_\_\_
|
1. 静态变量关键词\_\_\_\_,常态变量关键词\_\_\_\_
|
||||||
|
|
||||||
2. ```c
|
2. \_\_\_\_
|
||||||
|
|
||||||
|
```c
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
int main() {
|
int main() {
|
||||||
int a = 3, b = 2;
|
int a = 3, b = 2;
|
||||||
|
|
@ -22,7 +24,6 @@ title: 2025-2026学年春季期期中(whq)
|
||||||
printf("%.2f",c);
|
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)` 输出\_\_\_\_
|
||||||
|
|
||||||
|
|
@ -62,7 +63,6 @@ title: 2025-2026学年春季期期中(whq)
|
||||||
|
|
||||||
## 四、手写代码(40 分)
|
## 四、手写代码(40 分)
|
||||||
|
|
||||||
|
|
||||||
1. 求五个数中的中位数
|
1. 求五个数中的中位数
|
||||||
|
|
||||||
**Input**
|
**Input**
|
||||||
|
|
@ -82,4 +82,3 @@ title: 2025-2026学年春季期期中(whq)
|
||||||
**Output**
|
**Output**
|
||||||
|
|
||||||
> `No Such Number.`
|
> `No Such Number.`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue