Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started