用 class 或 struct 封装一下数组,然后放入 vector<> 的 <> 中,例子:include <stdio.h>#include <string.h>#include <vector>#include <stdexcept>using namespace std;class Row{public: static const size_t ROW_SIZE = 20;private: int row[ROW_SIZE];public: Row() { ...