diff --git a/2207/C语言同步练习答案.md b/2207/C语言同步练习答案.md index f1e3ceb..7711b1b 100644 --- a/2207/C语言同步练习答案.md +++ b/2207/C语言同步练习答案.md @@ -524,24 +524,113 @@ int main(){ ![image-20250220231704799](https://yp.smallkun.cn/markdown/image-20250220231704799.png!compress) + + --- ## 函数 +### 函数-1 + +![image-20250227231121624](https://yp.smallkun.cn/markdown/image-20250227231121624.png!compress) + + + +### 函数-2 + +![image-20250227231147113](https://yp.smallkun.cn/markdown/image-20250227231147113.png!compress) + + + +### 函数-3 + +![image-20250227231154429](https://yp.smallkun.cn/markdown/image-20250227231154429.png!compress) + ## 指针 +### 指针-1 + +![image-20250227231209008](https://yp.smallkun.cn/markdown/image-20250227231209008.png!compress) + + + +### 指针-2 + +![image-20250227231216409](https://yp.smallkun.cn/markdown/image-20250227231216409.png!compress) + + + +### 指针-3 + +![image-20250227231232971](https://yp.smallkun.cn/markdown/image-20250227231232971.png!compress) + + + +### 指针-4 + +![image-20250227231243197](https://yp.smallkun.cn/markdown/image-20250227231243197.png!compress) + ## 编译预处理 +### 预处理-1 + +![image-20250227231302316](https://yp.smallkun.cn/markdown/image-20250227231302316.png!compress) + + + +### 预处理-2 + +![image-20250227231314793](https://yp.smallkun.cn/markdown/image-20250227231314793.png!compress) + + + +### 预处理-3 + +![image-20250227231325297](https://yp.smallkun.cn/markdown/image-20250227231325297.png!compress) + ## 结构体 +### 结构体-1 + +![image-20250227231339018](https://yp.smallkun.cn/markdown/image-20250227231339018.png!compress) + + + +### 结构体-2 + +![image-20250227231421233](https://yp.smallkun.cn/markdown/image-20250227231421233.png!compress) + +### 结构体-3 + +![image-20250227231434183](https://yp.smallkun.cn/markdown/image-20250227231434183.png!compress) + ## 文件 -## \ No newline at end of file +### 文件-1 + +![image-20250227231459946](https://yp.smallkun.cn/markdown/image-20250227231459946.png!compress) + + + + + +### 文件-2 + +![image-20250227231509693](https://yp.smallkun.cn/markdown/image-20250227231509693.png!compress) + + + +### 文件-3 + +![image-20250227231516025](https://yp.smallkun.cn/markdown/image-20250227231516025.png!compress) + + + diff --git a/万维调考试题/Prog1.c b/万维调考试题/Prog1.c index 8e9f17c..d77882c 100644 --- a/万维调考试题/Prog1.c +++ b/万维调考试题/Prog1.c @@ -42,19 +42,20 @@ void decodeString(char *s, char *out) { while (*p_read){ /**********Program**********/ if(*p_read == '('){//ҵ //(3AC) - digit_len = 0;//ַҪӡ - digit_len = parseNumber(++p_read, &digit_len);//ȡֲ - while(*p_read >= '0' && *p_read <= '9'){/ - p_read++; - } - repeats = 0; - while(*p_read != ')'){ - buf[repeats++]=*p_read++; - - } - buf[repeats]='\0'; + digit_len = 0;//ֵij + repeats = parseNumber(++p_read, &digit_len);//ȡֲ - for(repeats=0;repeats