Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamic #array
ADD COMMENT
Topic
Name
7+3 =