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