Question: Language is C++ My code doesn't display matrixes or add them correctly and I'm stumped, other experts haven't helped. Please help me and test the
Language is C++
My code doesn't display matrixes or add them correctly and I'm stumped, other experts haven't helped. Please help me and test the code yourself before submitting your answer.
I have provided text files for you to use and test yourself and submit a screenshot. I will upvote anybody who successfully helps. Please make sure it works correctly
MY CODE:
#include
int** theTable1; int** theTable2; int** theSum;
int main() {
int numRows, numCols;
string fileName1, fileName2; cout
ifstream fin1, fin2; fin1.open(fileName1); fin2.open(fileName2);
if (!fin1 || !fin2) { cout
fin1 >> numRows >> numCols; theTable1 = new int* [numRows]; for (int i = 0; i > theTable1[r][c]; } }
fin2 >> numRows >> numCols; theTable2 = new int* [numRows]; for (int i = 0; i > theTable2[r][c]; } }
theSum = new int* [numRows]; for (int i = 0; i
cout
cout
cout
TextFile1

TextFile2

OUTPUT SHOULD LOOK SOMETHING LIKE THIS:

Please test it yourself before submitting, I will not upvote something that does not have a working screenshot
Matrix_Addition_1 - Notepad View 42318239.1545267533245.565565.5551.234545454233.14159014568 1.1112.2223.3334.4445.5551112141618822645253737452.53510
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
