From 01f2522ce43d4c8de5082ee808c75e4a346671a6 Mon Sep 17 00:00:00 2001 From: best xmg Date: Sun, 13 Oct 2024 05:20:33 -0400 Subject: [PATCH] Modify README.md of chap03 --- chap03/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chap03/README.md b/chap03/README.md index 0ac6b43..31a93cc 100644 --- a/chap03/README.md +++ b/chap03/README.md @@ -161,7 +161,7 @@ For those that are not legal, explain why they are illegal. (c) vector svec(10, "null"); ``` -(a) legal: define and value initialize a _vector_ whose elements are _vector_ of _int_. +(a) uncertain: In the modern C++ standard(like C++ 11),it define and default initialize a _vector_ whose elements are _vector_ of _int_. However, In the past C++ standard(like C++ 98), it will raise compiling error for lacking a _space_ between the two closing angle bracket of the outer _vector_. (b) illegal: types of _svec_ and _ivec_ are different, we can't initialize a _vector_ with another of different types.