📜  字符串向量初始化 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.241000             🧑  作者: Mango

代码示例1
C++17 

std::vector v = { "xyzzy", "plugh", "abracadabra" };
std::vector v({ "xyzzy", "plugh", "abracadabra" });
std::vector v{ "xyzzy", "plugh", "abracadabra" };