I would like to get one dimensional array from my double int pointer. The memory for pointer is allocated like this :
listOfTxtsContents = new int *[ROWS];
for( int i = 0 ; i < ROWS ; i++ )
{
listOfTxtsContents[i] = new int[COLUMNS];
for(int j = 0; j < COLUMNS; ++j)
listOfTxtsContents[i][j] = 0;
}
Then each row contains some data where I would like to put it in the array in such a way so that the 1D array will be filled with consecutive rows.
Pretty sure something like this should work: