方法一:
#include <vector>
vector<vector<int> > pi(m, vector<int>(n));
方法二:
int** pi = new int* [m];
for(int t = 0; t < m; t++)
{
pi[t] = new int[n];
}
方法一:
#include <vector>
vector<vector<int> > pi(m, vector<int>(n));
方法二:
int** pi = new int* [m];
for(int t = 0; t < m; t++)
{
pi[t] = new int[n];
}