Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T> class Matrix
- {
- public:
- //constructor
- int **m = new int*[_rows];
- for (int i = 0; i < _rows; i++)
- {
- m[i] = new int[_cols];
- }
- //destructor
- for (int i = 0; i < _rows; i++)
- {
- delete[] m[i]
- }
- delete[] m;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement