From 292551a8f272fc5fc308afc3f3d9711789c0cc04 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 28 Oct 2024 19:19:04 +0800 Subject: [PATCH] doc: update docs/cpp.md --- docs/cpp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cpp.md b/docs/cpp.md index cea498da897..3f4950ab6d4 100644 --- a/docs/cpp.md +++ b/docs/cpp.md @@ -177,7 +177,7 @@ marks[0] = 92; marks[1] = 97; marks[2] = 98; // 定义和初始化 -std::array = {92, 97, 98}; +std::array marks = {92, 97, 98}; // 有空成员 std::array marks = {92, 97}; std::cout << marks[2]; // 输出: 0