📜  c++ 2d 向量赋值 - C++ 代码示例

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

代码示例1
vector> v;
   int val;
   int n = size(v);
   for(int i = 0; i < n; i++)
{
      vector temp;
      for(int j = 0; j < n; j++){
         cin >> val;
      temp.push_back(val);
      }
      v.push_back(temp);
      temp.clear();