diff --git a/bulls-and-cows-cpp/CGame.cpp b/bulls-and-cows-cpp/CGame.cpp index 75ff901..65f3c86 100644 --- a/bulls-and-cows-cpp/CGame.cpp +++ b/bulls-and-cows-cpp/CGame.cpp @@ -1,7 +1,6 @@ // CGame.cpp // #include "CGame.h" -//#include #include #include #include @@ -51,6 +50,7 @@ void CGame::Start() ret = GetNumber(step); if (ret == -1) return; } while (ret < 0); + m_uStepCounter++; } PrintGameHeader(); @@ -85,7 +85,8 @@ void CGame::PrintGameHeader() void CGame::PrintGameFooter() { - std::wcout << L"\n\n\t" << L"!!! П О Б Е Д А !!!" << L"\n\n" << std::endl; + std::wcout << L"\n\n\t" << L"!!! П О Б Е Д А !!!" << std::endl; + std::wcout << L"\tКоличество ходов: " << m_uStepCounter << L"\n\n" << std::endl; } void CGame::PrintSteps() diff --git a/bulls-and-cows-cpp/bulls-and-cows.cpp b/bulls-and-cows-cpp/bulls-and-cows.cpp index 13376e1..292fe84 100644 --- a/bulls-and-cows-cpp/bulls-and-cows.cpp +++ b/bulls-and-cows-cpp/bulls-and-cows.cpp @@ -3,7 +3,7 @@ #include #include "..\..\..\MyFunctions\SetUserLocale.h" #include "CGame.h" -#include +//#include int wmain(int argc, wchar_t* argv[]) {