Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Конструктор с копированием
- Matrix=(const Matrix& other) :elem{new T[other.numRows*other.numColumns]}, numRows{other.numRows}, numColumns{other.numColumns}
- {
- for (int i = 0; i!=numRows; ++i)
- for (int j = 0; j!=numColumns; ++j)
- elem[i*numColumns + j] = other.elem[i*numColumns + j];
- return *this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement