有多种方式可以构造 vector,例如使用大括号语法从字面值初始化它:
std::vector<int> veciVar = {0, 11, 22, 33};

Last modified: Thursday, 30 January 2025, 2:05 PM