two dimensional dynamic array c++

[ad_1]

how to make a n*n 2d dynamic array in c++
int** a = new int*[rowCount];
for(int i = 0; i < rowCount; ++i)
    a[i] = new int[colCount];
two dimensional dynamic array c++
int ** two_dim_array(int row_num, int col_num)
{
	int **two_dim_array=(int **)malloc(sizeof(int *)*row_num);
    int i, j;
  	for(i=0:i

[ad_2]

Please follow and like us:
Content Protection by DMCA.com