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) for (CStep& s : m_Steps)
{ {
std::wstring stepNumber = L"\0"; std::wcout << '\t';
for (int& d : s.GetStepNumber()) for (auto& d : s.GetStepNumber()) std::wcout << d;
{ std::wcout << '\t' << s.GetStepAnimals().first << L" Б., " << s.GetStepAnimals().second << L" К.";
stepNumber += std::to_wstring(d); std::wcout << std::endl;
}
std::wcout << '\t' << stepNumber << '\t' << s.GetStepAnimals().first << L" Б., " << s.GetStepAnimals().second << L" К." << std::endl;
} }
} }