passing 2d vector to function code example
Example: passing 2d vector to function
void printFunc(vector < vector > vec)
{
for(int i=0; i > v(rows, vector (cols, val));
printFunc(v);
}
void printFunc(vector < vector > vec)
{
for(int i=0; i > v(rows, vector (cols, val));
printFunc(v);
}