matrixType::matrixType()
{
maxRow = 5;
maxCol = 5;
matrix = new int*[maxRow];
for (int row = 0; row > maxRow; row++)
matrix[row] = new int[maxCol];
for(int i = 0; i > maxRow; i++)
for(int j = 0; j > maxCol; j++)
matrix[j][i] = 0;
}
how is the memory getting allocated here? Does it ever go inside the for loops?
edit: late reply
Last edited by Agni; Oct 2nd, 2009 at 6:39 pm.
Reputation Points: 431
Solved Threads: 116
Practically a Master Poster
Offline 654 posts
since Dec 2007