void main()
{
int **array;
int height, width;
int i,j;
//分配空间
array = NULL;
array= new int *[height];
for(j=0;j<height;j++)
array[j]= new int [width];
//释放
if(!array)
printf("No matrix to be release!\n");
for (j=0;j<height;j++)//释放每个一维数组
delete []array[j];
delete []array;//释放整个二维数组
array = NULL;
}