From cf55efea74e4f76ba2a095ecfac3f002693ea7a8 Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Mon, 5 Jun 2023 12:13:55 +0300 Subject: [PATCH] Added class CGame. --- bulls-and-cows-cpp.sln | 31 ++++ bulls-and-cows-cpp/CGame.cpp | 10 ++ bulls-and-cows-cpp/CGame.h | 18 +++ bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj | 141 ++++++++++++++++++ .../bulls-and-cows-cpp.vcxproj.filters | 30 ++++ bulls-and-cows-cpp/bulls-and-cows.cpp | 17 +++ 6 files changed, 247 insertions(+) create mode 100644 bulls-and-cows-cpp.sln create mode 100644 bulls-and-cows-cpp/CGame.cpp create mode 100644 bulls-and-cows-cpp/CGame.h create mode 100644 bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj create mode 100644 bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj.filters create mode 100644 bulls-and-cows-cpp/bulls-and-cows.cpp diff --git a/bulls-and-cows-cpp.sln b/bulls-and-cows-cpp.sln new file mode 100644 index 0000000..c5abd7d --- /dev/null +++ b/bulls-and-cows-cpp.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33723.286 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bulls-and-cows-cpp", "bulls-and-cows-cpp\bulls-and-cows-cpp.vcxproj", "{1EAF952A-01F5-4249-A1AC-6BEA3182EC89}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Debug|x64.ActiveCfg = Debug|x64 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Debug|x64.Build.0 = Debug|x64 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Debug|x86.ActiveCfg = Debug|Win32 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Debug|x86.Build.0 = Debug|Win32 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Release|x64.ActiveCfg = Release|x64 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Release|x64.Build.0 = Release|x64 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Release|x86.ActiveCfg = Release|Win32 + {1EAF952A-01F5-4249-A1AC-6BEA3182EC89}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1554F08C-00A5-4DBA-808B-34661932319F} + EndGlobalSection +EndGlobal diff --git a/bulls-and-cows-cpp/CGame.cpp b/bulls-and-cows-cpp/CGame.cpp new file mode 100644 index 0000000..efffb8d --- /dev/null +++ b/bulls-and-cows-cpp/CGame.cpp @@ -0,0 +1,10 @@ +// CGame.cpp +// +#include "CGame.h" +#include + +// Initialize the variables +void CGame::Init() +{ + // TODO: Add your implementation code here. +} diff --git a/bulls-and-cows-cpp/CGame.h b/bulls-and-cows-cpp/CGame.h new file mode 100644 index 0000000..8bf615d --- /dev/null +++ b/bulls-and-cows-cpp/CGame.h @@ -0,0 +1,18 @@ +// CGame.h +// +#pragma once + +class CGame +{ +private: + unsigned int m_uStepCounter; + unsigned int m_uGuessedNumber; +public: + unsigned char m_ucBulls; + unsigned char m_ucCows; + +private: + // Initialize the variables + void Init(); +}; + diff --git a/bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj b/bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj new file mode 100644 index 0000000..2b937c6 --- /dev/null +++ b/bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj @@ -0,0 +1,141 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {1eaf952a-01f5-4249-a1ac-6bea3182ec89} + bullsandcowscpp + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp17 + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp17 + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj.filters b/bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj.filters new file mode 100644 index 0000000..11ad751 --- /dev/null +++ b/bulls-and-cows-cpp/bulls-and-cows-cpp.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/bulls-and-cows-cpp/bulls-and-cows.cpp b/bulls-and-cows-cpp/bulls-and-cows.cpp new file mode 100644 index 0000000..14cb7e2 --- /dev/null +++ b/bulls-and-cows-cpp/bulls-and-cows.cpp @@ -0,0 +1,17 @@ +// bulls-and-cows.cpp +// +#include +#include +#include +#include +#include "CGame.h" + +int wmain(int argc, wchar_t* argv[]) +{ + + + + + + return 0; +}