Question: I am using C++. I have a file with three equations involving x, y, and z. The file looks something like this: 2.95x+3y-1z=9 5x-0y+.3z=4.2 -1.7z+0y+4x=5
I am using C++.
I have a file with three equations involving x, y, and z.
The file looks something like this:
2.95x+3y-1z=9
5x-0y+.3z=4.2
-1.7z+0y+4x=5
Notice how some of the coefficients/answers are floating point (decimal) numbers? I need to grab all numbers from these equations and store them into an array using pointers. So in the case provided above my array would have 12 numbers total. May I please have some help? For input/output, please use "cout <<" and "cin>>" if needed. No scanf or printf.
I'll be performing row operations on these equations, and since the variables don't have to be in order, it would also be awesome if you could give me advice about that. I have no idea how to handle it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
