diff --git a/2207/万维C/2.c b/2207/万维C/2.c index 376e664..18a25e0 100644 --- a/2207/万维C/2.c +++ b/2207/万维C/2.c @@ -12,8 +12,38 @@ char* replaceSubstring(const char *str, const char *oldSubstr, const char *newSu /**********Program**********/ - - + //¶¯Ì¬ÄÚ´æ·ÖÅäÊý×é¿Õ¼ä + result = (char *)malloc(10000); + p = result;//½«Êý×éÊ×µØÖ·¸³Öµ¸øÒ»¸öÖ¸Õë±äÁ¿ÓÃÀ´²Ù×÷Êý×é + for(i=0;i