The following example allocates and then frees a two-dimensional array of characters of size dim by 10.
When allocating a multidimensional array, all dimensions except the first must be “constant expressions” that evaluate to positive values;
the leftmost array dimension can be “any expression” that evaluates to a positive value.
When allocating an array using the new operator, the first dimension can be zero — the new operator returns a unique pointer.
下面的例子展示了如何为一个长度为10的二维字符数组分配和释放空间。
当分配一个多维数组空间时,除了第一维外 ,其余各维都必须显式地指定为正常数
而第一维则可以为任意正数。
特别,分配时第一维数字可以为0,new操作符返回唯一的指针。
char (*pchar)[10] = new char[dim][10];
delete [] pchar;
http://msdn.microsoft.com/en-us/library/kewsb8ba(v=vs.71).aspx