add initialization of C++ arrays

pull/151/head
C_YouShao 2 years ago committed by GitHub
parent 58319bd831
commit 45d2934386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,7 +57,11 @@ comments: true
=== "C++"
```cpp title=""
/* 使用多种「基本数据类型」来初始化「数组」 */
int numbers[5] = {0};
float decimals[5] = {0};
char characters[5] = {'0','0','0','0','0'};
bool booleans[5] = {0};
```
=== "Python"

Loading…
Cancel
Save