vector嵌套vector遍历
void printVector(vector<vector<int>>& v)
{
for (vector<vector<int> >::iterator it = v.begin(); it != v.end(); it++)
{
//(*it)是个vector<int>型的小容器
//故要再创建相应的迭代器才能访问其中元素
for (vector<int>::iterator vit = (*it).begin(); vit != (*it).end(); vit++)
cout << *vit << " ";
cout << endl;
}
cout << endl;
}