From 4fe90394ec0550607db59aff933b5f98b2743311 Mon Sep 17 00:00:00 2001 From: ParkSuMin Date: Wed, 24 Sep 2025 11:29:42 +0300 Subject: [PATCH] Change names for output files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Теперь в названиях файлов фигурирует количество КЭ --- Solver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) << ' '; }