Erm, I decided to just go with a 10 x 10 matrix thing. The problem is though, after the second call to the Get_values function (which is supposed to fill up the second matrix with values), I always get an error after I enter in the last value, and it said I reached the breakpoint (when I used a matrix class), and that my index was 1 over, yet I don't really see how because I had ... kept it in bounds. It never happened for the first matrix though, oddly enough. I don't know if I'll be able to finish this by tonight, but if I could get someone to help me debug this, that'd be really great. ^^' I'm horrible at debugging.
Code:
template <class DataType>
void Get_values(DataType *Matrix1, int NumRows1, int NumCols1)
{
for(int RowNum1 = 0; RowNum1 <= (NumRows1 - 1); RowNum1++)
{
for(int ColNum1 = 0; ColNum1 <= (NumCols1 - 1); ColNum1++)
{
cout << "\t(" << (RowNum1 + 1) << ", " << (ColNum1 + 1) << "): ";
cin >> Matrix1[RowNum1][ColNum1];
}
}
}// end Get_values