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,

I have a txt file that contain a 2d array that I

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

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!