Question: 1 . Download files matrix.h , matrix.cpp , and lab 5 ExD.cpp , from D 2 L . 2 . Read these files carefully to
Download files matrix.h matrix.cpp and labExD.cpp from DL
Read these files carefully to understand how the class Matrix dynamically allocates memory for an arrayofpointers called matrixM. Each element of this array is supposed to point to a dynamically allocated array
of doubles.
The class Matrix also contains the following private data members:
rowsM: which holds the number of rows in a matrix object
colsM: which holds the number of columns in a matrix object
sumrowsM: is a pointer to double that is supposed to point to an array which is used for storing the sum of
the values in each row of the matrix.
sumcolsM: is a pointer to double that is supposed to point to an array which is used for storing the sum of
the values in each column of the matrix.
Compile the program using the following command:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
