diff --git a/Solver.cpp b/Solver.cpp index 2c470a2..62e86a3 100644 --- a/Solver.cpp +++ b/Solver.cpp @@ -73,7 +73,7 @@ void Solver::Execute_Linear(double val1, double val2) { std::cout << "\nSolution:" << std::endl; std::cout << solution << std::endl; - std::ofstream file("matrix_linear.txt"); + std::ofstream file("matrix_linear_" + std::to_string(N) + ".txt"); for (int i = 0; i < solution.size(); i++) { file << solution(i) << ' '; } @@ -152,7 +152,7 @@ void Solver::Execute_Cubic(double val1, double val2) { std::cout << "\nSolution:" << std::endl; std::cout << solution << std::endl; - std::ofstream file("matrix_cubic.txt"); + std::ofstream file("matrix_cubic_" + std::to_string(N) + ".txt"); for (int i = 0; i < solution.size(); i++) { file << solution(i) << ' '; }