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
Get step-by-step solutions from verified subject matter experts
