commit 694918f6023aca10facd1814f5f946e482b99ed6 Author: linyongji Date: Wed Feb 3 10:34:55 2021 +0800 no message diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..20d6ac6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.json +*.sqlite +*.db +*.ipch +*.testlog +*.manifest +*.user diff --git a/.vs/Algorithm/v16/.suo b/.vs/Algorithm/v16/.suo new file mode 100644 index 0000000..0c85e50 Binary files /dev/null and b/.vs/Algorithm/v16/.suo differ diff --git a/Algorithm.sln b/Algorithm.sln new file mode 100644 index 0000000..4de529b --- /dev/null +++ b/Algorithm.sln @@ -0,0 +1,41 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30804.86 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "code", "code\code.vcxproj", "{6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test\test.vcxproj", "{C78A4C90-900B-4A87-B689-7B845D7B8CE2}" +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 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Debug|x64.ActiveCfg = Debug|x64 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Debug|x64.Build.0 = Debug|x64 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Debug|x86.ActiveCfg = Debug|Win32 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Debug|x86.Build.0 = Debug|Win32 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Release|x64.ActiveCfg = Release|x64 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Release|x64.Build.0 = Release|x64 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Release|x86.ActiveCfg = Release|Win32 + {6C54AE3E-36FC-4A6B-B3B6-1D06B0B5865C}.Release|x86.Build.0 = Release|Win32 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Debug|x64.ActiveCfg = Debug|x64 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Debug|x64.Build.0 = Debug|x64 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Debug|x86.ActiveCfg = Debug|Win32 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Debug|x86.Build.0 = Debug|Win32 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Release|x64.ActiveCfg = Release|x64 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Release|x64.Build.0 = Release|x64 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Release|x86.ActiveCfg = Release|Win32 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {478E5C9E-781A-40B6-9CA7-440C41A39935} + EndGlobalSection +EndGlobal diff --git a/code/code.vcxproj b/code/code.vcxproj new file mode 100644 index 0000000..01d1d03 --- /dev/null +++ b/code/code.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + 16.0 + Win32Proj + {6c54ae3e-36fc-4a6b-b3b6-1d06b0b5865c} + code + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + diff --git a/code/code.vcxproj.filters b/code/code.vcxproj.filters new file mode 100644 index 0000000..afef69e --- /dev/null +++ b/code/code.vcxproj.filters @@ -0,0 +1,17 @@ + + + + + {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 + + + \ No newline at end of file diff --git a/test/pch.cpp b/test/pch.cpp new file mode 100644 index 0000000..b6fb8f4 --- /dev/null +++ b/test/pch.cpp @@ -0,0 +1,5 @@ +// pch.cpp: 与预编译标头对应的源文件 + +#include "pch.h" + +// 当使用预编译的头时,需要使用此源文件,编译才能成功。 diff --git a/test/pch.h b/test/pch.h new file mode 100644 index 0000000..69fcd40 --- /dev/null +++ b/test/pch.h @@ -0,0 +1,12 @@ +// pch.h: 这是预编译标头文件。 +// 下方列出的文件仅编译一次,提高了将来生成的生成性能。 +// 这还将影响 IntelliSense 性能,包括代码完成和许多代码浏览功能。 +// 但是,如果此处列出的文件中的任何一个在生成之间有更新,它们全部都将被重新编译。 +// 请勿在此处添加要频繁更新的文件,这将使得性能优势无效。 + +#ifndef PCH_H +#define PCH_H + +// 添加要在此处预编译的标头 + +#endif //PCH_H diff --git a/test/test.cpp b/test/test.cpp new file mode 100644 index 0000000..96f9552 --- /dev/null +++ b/test/test.cpp @@ -0,0 +1,16 @@ +#include "pch.h" +#include "CppUnitTest.h" + +using namespace Microsoft::VisualStudio::CppUnitTestFramework; + +namespace test +{ + TEST_CLASS(test) + { + public: + + TEST_METHOD(TestMethod1) + { + } + }; +} diff --git a/test/test.vcxproj b/test/test.vcxproj new file mode 100644 index 0000000..c2403be --- /dev/null +++ b/test/test.vcxproj @@ -0,0 +1,173 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {C78A4C90-900B-4A87-B689-7B845D7B8CE2} + Win32Proj + test + 10.0 + NativeUnitTestProject + + + + DynamicLibrary + true + v142 + Unicode + false + + + DynamicLibrary + false + v142 + true + Unicode + false + + + DynamicLibrary + true + v142 + Unicode + false + + + DynamicLibrary + false + v142 + true + Unicode + false + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Use + Level3 + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + _DEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Use + Level3 + true + true + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + true + true + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Use + Level3 + true + true + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + NDEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + true + true + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Create + Create + Create + Create + + + + + + + + + + \ No newline at end of file diff --git a/test/test.vcxproj.filters b/test/test.vcxproj.filters new file mode 100644 index 0000000..6827f7c --- /dev/null +++ b/test/test.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 + + + + + 源文件 + + + 源文件 + + + + + 头文件 + + + \ No newline at end of file