二维数组开辟空间

int[ ][ ]    arr=nw int[2][ ];

注意在给二维数组中的一维数组赋值时,需要给一维数组开辟空间,否则我无法使用,为null

posted @ 2022-12-08 14:35  风凋碧树  阅读(69)  评论(0)    收藏  举报