c++动态定义数组

1. 动态定义一维数组:int * data = https://www.it610.com/article/new int[size]
2. 动态定义二维数组:
int **data2;
data2 = new int *[row];
for (i=0; i data2[i] = new int[col];

【c++动态定义数组】转载于:https://www.cnblogs.com/QRain/p/11451198.html

    推荐阅读