Question: 1 . Download files matrix.h , matrix.cpp , and lab 5 ExD.cpp , from D 2 L . 2 . Read these files carefully to

1. Download files matrix.h, matrix.cpp, and lab5ExD.cpp, from D2L.
2. Read these files carefully to understand how the class Matrix dynamically allocates memory for an arrayof-pointers called matrixM. Each element of this array is supposed to point to a dynamically allocated array
of doubles.
5
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
sum_rowsM: 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.
sum_colsM: 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.
3. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!