What is the simplest way to convert array to vector?
void test(vector _array) { ... } int x[3]={1, 2, 3}; test(x); // Syntax error.
One simple way can be the use of assign() function that is pre-defined in vector class.
assign()
vector
e.g.
array[5]={1,2,3,4,5}; vector v; v.assign(array, array+5); // 5 is size of array.