Question: I am using C++ I have a file with three equations involving x, y, and z. The file looks something like this: 2x+3y-1z=9 5x-0y+3z=4 0z+0y+4z=5

I am using C++

I have a file with three equations involving x, y, and z.

The file looks something like this:

2x+3y-1z=9

5x-0y+3z=4

0z+0y+4z=5

I need to somehow get all 12 numbers from this file and store them into an array. For now I'm just displaying them using cout, so I tried

while(file >> int)

{

cout << int << endl;

}

It's not working; any ideas; please don't just write the entire program for me. Explain what concepts I need to use.

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!