mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-09 13:45:35 +08:00
build
This commit is contained in:
@@ -30,7 +30,7 @@ comments: true
|
||||
/* 初始化数组 */
|
||||
// 存储在栈上
|
||||
int arr[5];
|
||||
int nums[5] { 1, 3, 2, 5, 4 };
|
||||
int nums[5] = { 1, 3, 2, 5, 4 };
|
||||
// 存储在堆上(需要手动释放空间)
|
||||
int* arr1 = new int[5];
|
||||
int* nums1 = new int[5] { 1, 3, 2, 5, 4 };
|
||||
|
||||
Reference in New Issue
Block a user