Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. MyMatrix sum(const MyMatrix&t)
  2. {
  3. MyMatrix res(t);
  4. if((m==t.m)&&(n==t.n))
  5. {
  6. for (int i=0; i<m; i++)
  7. {
  8. for (int j=0; j<n; j++) res.A[i][j]+=A[i][j];
  9. }
  10. }
  11. return res;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement