最佳答案
将数组转换为向量的最简单方法是什么?
void test(vector<int> _array)
{
...
}
int x[3]={1, 2, 3};
test(x); // Syntax error.
我想用最简单的方法把 x 从 int 数组转换成向量。