|
|
@ -70,7 +70,8 @@ comments: true
|
|
|
|
=== "C"
|
|
|
|
=== "C"
|
|
|
|
|
|
|
|
|
|
|
|
```c title="array.c"
|
|
|
|
```c title="array.c"
|
|
|
|
|
|
|
|
int arr[5] = { 0 }; // { 0, 0, 0, 0, 0 }
|
|
|
|
|
|
|
|
int nums[5] = { 1, 3, 2, 5, 4 };
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
=== "C#"
|
|
|
|
=== "C#"
|
|
|
@ -153,7 +154,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
|
|
|
=== "C"
|
|
|
|
=== "C"
|
|
|
|
|
|
|
|
|
|
|
|
```c title="array.c"
|
|
|
|
```c title="array.c"
|
|
|
|
|
|
|
|
[class]{}-[func]{randomAccess}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
=== "C#"
|
|
|
|
=== "C#"
|
|
|
@ -217,7 +218,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
|
|
|
=== "C"
|
|
|
|
=== "C"
|
|
|
|
|
|
|
|
|
|
|
|
```c title="array.c"
|
|
|
|
```c title="array.c"
|
|
|
|
|
|
|
|
[class]{}-[func]{extend}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
=== "C#"
|
|
|
|
=== "C#"
|
|
|
@ -299,7 +300,9 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
|
|
|
=== "C"
|
|
|
|
=== "C"
|
|
|
|
|
|
|
|
|
|
|
|
```c title="array.c"
|
|
|
|
```c title="array.c"
|
|
|
|
|
|
|
|
[class]{}-[func]{insert}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[class]{}-[func]{removeItem}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
=== "C#"
|
|
|
|
=== "C#"
|
|
|
@ -369,7 +372,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
|
|
|
=== "C"
|
|
|
|
=== "C"
|
|
|
|
|
|
|
|
|
|
|
|
```c title="array.c"
|
|
|
|
```c title="array.c"
|
|
|
|
|
|
|
|
[class]{}-[func]{traverse}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
=== "C#"
|
|
|
|
=== "C#"
|
|
|
@ -431,7 +434,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
|
|
|
=== "C"
|
|
|
|
=== "C"
|
|
|
|
|
|
|
|
|
|
|
|
```c title="array.c"
|
|
|
|
```c title="array.c"
|
|
|
|
|
|
|
|
[class]{}-[func]{find}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
=== "C#"
|
|
|
|
=== "C#"
|
|
|
|