From c57e611d4209eca33d9ae25437501e1ac3cf4019 Mon Sep 17 00:00:00 2001 From: smallkun Date: Tue, 25 Feb 2025 08:58:39 +0800 Subject: [PATCH] Auto commit --- 2207/万维C/2.c | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) 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