mirror of
https://github.com/krahets/hello-algo.git
synced 2026-10-24 06:55:19 +08:00
fix: sync array, deque, and printing fixes across translations (#1973)
Synchronize the fixes from #1936, #1824, and #1961 across translated editions and normalize C# and Dart formatting. Move Java CI to Ubuntu 24.04 so its Java 11/17 checks can run.
This commit is contained in:
@@ -23,10 +23,10 @@
|
||||
```cpp title="array.cpp"
|
||||
/* 配列を初期化する */
|
||||
// スタック上に格納
|
||||
int arr[5];
|
||||
int arr[5] = {};
|
||||
int nums[5] = { 1, 3, 2, 5, 4 };
|
||||
// ヒープ上に格納(手動で領域を解放する必要がある)
|
||||
int* arr1 = new int[5];
|
||||
int* arr1 = new int[5] {};
|
||||
int* nums1 = new int[5] { 1, 3, 2, 5, 4 };
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user