📜  向量对的向量 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:49.645000             🧑  作者: Mango

代码示例1
vector>> vec(10, vector>(5, pair(0, 0)));

    for (int i = 0; i < vec.size(); i++)
    {
        for (int j = 0; j < vec[i].size(); j++)
        {
            cout << vec[i][j].first << " ";
            cout << vec[i][j].second << " ";
        }
        cout << endl;
    }