Refactored the PrintSteps() method.

This commit is contained in:
2023-08-06 14:28:10 +03:00
parent 5a4fa61ed2
commit 872e390ce9

View File

@@ -125,12 +125,10 @@ void CGame::PrintSteps()
for (CStep& s : m_Steps)
{
std::wstring stepNumber = L"\0";
for (int& d : s.GetStepNumber())
{
stepNumber += std::to_wstring(d);
}
std::wcout << '\t' << stepNumber << '\t' << s.GetStepAnimals().first << L" Б., " << s.GetStepAnimals().second << L" К." << std::endl;
std::wcout << '\t';
for (auto& d : s.GetStepNumber()) std::wcout << d;
std::wcout << '\t' << s.GetStepAnimals().first << L" Б., " << s.GetStepAnimals().second << L" К.";
std::wcout << std::endl;
}
}