c++ set vector to all 0 code example
Example: initialize all elements of vector to 0 c++
vector<int> vect1(10); //number of elements in vector
int value = 0;
fill(vect1.begin(), vect1.end(), value);
vector<int> vect1(10); //number of elements in vector
int value = 0;
fill(vect1.begin(), vect1.end(), value);