Apr 14, 2012 at 8:58pm
=
Last edited on Apr 16, 2012 at 5:58pm
Apr 14, 2012 at 10:01pm
1 2 3 4 5 6
|
for(int i = 0; i < rows; i++)
{
for(int j = 0; j < cols; j++)
cout << yData[i][j];
}
}
|
Last edited on Apr 14, 2012 at 10:01pm
Apr 14, 2012 at 10:19pm
s
Last edited on Apr 16, 2012 at 5:58pm
Apr 15, 2012 at 1:32am
not sure what ur trying to do? but that code prints every cell in the matrix based on its rows and cols
Apr 15, 2012 at 6:37am
Try this:
1 2
|
for(int i = 0; i < rows; ++i)
cout << matrix[i][cols - 1];
|
Just replace rows, cols, and matrix with the names you use in your program (or with 3 and 4).
Last edited on Apr 15, 2012 at 6:38am