pass vector in a function code example
Example: cpp function takes in vector
// Make sure to specify the type of the contents, as in:
void func(vector<int> vect)
{
vect.push_back(30);
}
// Make sure to specify the type of the contents, as in:
void func(vector<int> vect)
{
vect.push_back(30);
}