mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-25 11:13:38 +08:00
Merge pull request #151 from youshaoXG/patch-1
add initialization of C++ arrays
This commit is contained in:
@ -57,7 +57,11 @@ comments: true
|
||||
=== "C++"
|
||||
|
||||
```cpp title=""
|
||||
|
||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||
int numbers[5];
|
||||
float decimals[5];
|
||||
char characters[5];
|
||||
bool booleans[5];
|
||||
```
|
||||
|
||||
=== "Python"
|
||||
|
Reference in New Issue
Block a user