The name of the file containing the matrix and the integer* x[1] +
![]()
* x[
].
For example, for the text file
1 -2.3 3 0.0 -9.123 2 -50 -1you should obtain the following output:
x[1] - 2.3*x[2] + 3*x[3] = 0 -9.123*x[1] + 2*x[2] - 50*x[3] - x[4] = 0Hint: if you have a file stream ifs and you want to read a double value off it, use the following construct.
double t; ifs >> t;