#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector< vector<int> > test(10); //10可以是变量
vector< vector<int> >::iterator itr;
vector<int>::iterator itr2;
int i = 1;
for(itr = test.begin(); itr != test.end(); itr++)
{
for(int j = 0; j < 10; j++)
(*itr).push_back(j);
cout<<i++<<endl;
}
for(itr = test.begin(); itr != test.end(); itr++)
{
for(itr2 = (*itr).begin(); itr2 != (*itr).end(); ++itr2)
cout<<(*itr2)<<" ";
cout<<endl;
cout<<i++<<endl;
}
cout<<"hello world"<<endl;
system("pause");
return 0;
}