Skip to content

Commit

Permalink
doc: update docs/cpp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 28, 2024
1 parent af2f380 commit 292551a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ marks[0] = 92;
marks[1] = 97;
marks[2] = 98;
// 定义和初始化
std::array<int, 3> = {92, 97, 98};
std::array<int, 3> marks = {92, 97, 98};
// 有空成员
std::array<int, 3> marks = {92, 97};
std::cout << marks[2]; // 输出: 0
Expand Down

0 comments on commit 292551a

Please sign in to comment.