vector <int> col(0);
vector<vector<int> > row(0);
for(i=0;i<10;i++)
col.push_back(some integer);
row.push_back(col);
col.clear();
有人可以告诉我这里有什么问题吗?在col[]
向量中,没有错误,但是当我在最后一行之前通过在线调试转到下一条指令时,只是大小row[]
从 0 更改为 1,但我看不到它应该从col[]
向量中获取的值?
编辑:我试图放置调试屏幕的屏幕截图,但发生了声誉问题。