1. 动态定义一维数组:int * data = new int[size]
2. 动态定义二维数组:
int **data2;
data2 = new int *[row];
for (i=0; i<row; i++)
data2[i] = new int[col];
1. 动态定义一维数组:int * data = new int[size]
2. 动态定义二维数组:
int **data2;
data2 = new int *[row];
for (i=0; i<row; i++)
data2[i] = new int[col];