From 0aea04f142ba7ab85c410e6ec13e17d8614a1d21 Mon Sep 17 00:00:00 2001 From: Guanngxu <446678850@qq.com> Date: Sat, 11 Feb 2023 00:43:04 +0800 Subject: [PATCH] feat: add array C docs (#352) * feat: add arry C docs * fix: change remove to removeItem * Update array.md --------- Co-authored-by: Yudong Jin --- docs/chapter_array_and_linkedlist/array.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/chapter_array_and_linkedlist/array.md b/docs/chapter_array_and_linkedlist/array.md index a015a5389..e0abe19be 100755 --- a/docs/chapter_array_and_linkedlist/array.md +++ b/docs/chapter_array_and_linkedlist/array.md @@ -70,7 +70,8 @@ comments: true === "C" ```c title="array.c" - + int arr[5] = { 0 }; // { 0, 0, 0, 0, 0 } + int nums[5] = { 1, 3, 2, 5, 4 }; ``` === "C#" @@ -153,7 +154,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex === "C" ```c title="array.c" - + [class]{}-[func]{randomAccess} ``` === "C#" @@ -217,7 +218,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex === "C" ```c title="array.c" - + [class]{}-[func]{extend} ``` === "C#" @@ -299,7 +300,9 @@ elementAddr = firtstElementAddr + elementLength * elementIndex === "C" ```c title="array.c" - + [class]{}-[func]{insert} + + [class]{}-[func]{removeItem} ``` === "C#" @@ -369,7 +372,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex === "C" ```c title="array.c" - + [class]{}-[func]{traverse} ``` === "C#" @@ -431,7 +434,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex === "C" ```c title="array.c" - + [class]{}-[func]{find} ``` === "C#"