Question: I have a txt file that contain a 2d array that I want to read all the values from top left to the bottom right
I have a txt file that contain a 2d array that I want to read all the values from top left to the bottom right except the first row one by one using ifstream and store into "int val" in c++, (maybe looks like "ifstream inFile >> val") because I want to compute the value of the array.
The array looks like,

How do you do that in c++? Thank you!
| 4 6 112 | 2 3 4 11 2 9 | 5 6 11 2 10 7 | 1 1 12 199 | 4 5 6 9 9 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
