void fillTestCase (int * tC)
{
ifstream infile;
infile.open("input00.txt",ifstream::in);
int * tempGrid;
int i,j;
infile >>i;
infile >>j;
tempGrid = new int[i][j];
}
给我一个错误:
error C2540: non-constant expression as array bound
error C2440: '=' : cannot convert from 'int (*)[1]' to 'int *'
如何使这两个维度数组动态化?