assuming matrix is something like

class matrix

{

public:

int row_dim, col_dim;

int element[100][100];

};

and the parameters to function equate() are matrix* you use the > operator to access data members, e.g.

void equate(matrix *A, matrix *B)

{

int i, j;

assert(A>ow_dim == B>col_dim && A>col_dim == B>col_dim);


for(i=0; i < A>row_dim; i++)

for(j=0; j < A>col_dim; j++)

A>element[i][j] = B>element[i][j];

}
