i've filled in all the parameters the right way i think. but now i have to do some work in the main code area. i wanted to start off by just seeing if the arrays filled correctly. but when i type in an array, it tells me i need to declare it again. i shouldnt have to do this if its in the class right?
There's no creation of a Matrix object in the main function, so it won't know what data is on line 123.
row and col are private data members of Matrix. I'm not sure I understand why you are setting i and j local variables here instead of setting the data members with the numbers input into the constructor?
1 2 3 4 5 6 7 8
Matrix::Matrix(int row, int col)
{
int i;
int j;
i = row;
j = col;
}
line 39, 49, 125 - you don't need the semicolons
Edit: Is the matrix supposed to be a fixed 10x10 size? The user can't create a matrix of a size of their own choosing?