SHARE
TWEET

Untitled

Bisus Aug 31st, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Конструктор с копированием
  2. Matrix=(const Matrix& other) :elem{new T[other.numRows*other.numColumns]}, numRows{other.numRows}, numColumns{other.numColumns}
  3. {
  4. for (int i = 0; i!=numRows; ++i)
  5. for (int j = 0; j!=numColumns; ++j)
  6. elem[i*numColumns + j] = other.elem[i*numColumns + j];
  7.  
  8. return *this;
  9.  
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top