English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

if U have a class called Matrix and U want to over load the operator * U can do that
Matrix operator * (const Matrix &m1)const
{
Matrix result;
// Multiplay the two matrices ( this and m1) and put the results in result
return result;
}

and it is simply done :)

2006-12-08 01:34:29 · answer #1 · answered by I.M. 2 · 0 0

lower than you'll locate a goldmine :-) each and every thing you want is a few thing as: matrix & matrix:::operator * (const matrix & m ); matrix & matrix:::operator *= (const matrix & m ); pal matrix operator * (const matrix & m1, const matrix & m2 ); on your "matrix" classification.

2016-11-24 22:54:56 · answer #2 · answered by holts 4 · 0 0

fedest.com, questions and answers