From bc252f8f6cbdf874cd2e79744797b3a42ee0b8a4 Mon Sep 17 00:00:00 2001 From: smallkun Date: Thu, 27 Feb 2025 23:36:28 +0800 Subject: [PATCH] Auto commit --- 万维调考试题/Prog1.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) 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