commit 7afc96f5c8c4fa5b3f3e8cc9b3e0b4cbf698d13f Author: Sheldoer <1829523261@qq.com> Date: Mon Apr 5 17:42:37 2021 +0800 第一次总结 diff --git a/初试笔记/19苏大冲刺.pdf b/初试笔记/19苏大冲刺.pdf new file mode 100644 index 0000000..a41c4f0 Binary files /dev/null and b/初试笔记/19苏大冲刺.pdf differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/.suo new file mode 100644 index 0000000..20aac70 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/Browse.VC.db new file mode 100644 index 0000000..99dca25 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/4491c835c0c1e05a/1.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/4491c835c0c1e05a/1.1.ipch new file mode 100644 index 0000000..4939385 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/4491c835c0c1e05a/1.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/8ab067863f98ab09/1.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/8ab067863f98ab09/1.1.ipch new file mode 100644 index 0000000..f4ff4c6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/8ab067863f98ab09/1.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/c170e07a4cc6534f/1.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/c170e07a4cc6534f/1.1.ipch new file mode 100644 index 0000000..1756e67 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/ipch/AutoPCH/c170e07a4cc6534f/1.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/1.1.c b/初试笔记/c_prime_plus习题实现代码/chapter1.1/1.1.c new file mode 100644 index 0000000..963049c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/1.1.c @@ -0,0 +1,11 @@ +#include +int main(void) +{ + int dogs; + + printf("How many dogs do you have?\n"); + scanf_s("%d", &dogs); + printf("So you have %d dog(s)!\n", dogs); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/1.1.obj b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/1.1.obj new file mode 100644 index 0000000..f8c9751 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/1.1.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.exe new file mode 100644 index 0000000..8f47b61 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.ilk new file mode 100644 index 0000000..97fbe2c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.log b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.log new file mode 100644 index 0000000..68fd83a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.log @@ -0,0 +1,2 @@ + 1.1.c + eg1.1.vcxproj -> E:\allcode\c\primer_c_instance\eg1.1\Debug\eg1.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.pdb new file mode 100644 index 0000000..e4e7998 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e3044f1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..335443a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3359a64 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/eg1.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/eg1.1.lastbuildstate new file mode 100644 index 0000000..9b23f3a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/eg1.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\eg1.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..16f2c2a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..1056099 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..2b28ead Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..2141dfd --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\eg1.1\Debug\eg1.1.exe +E:\allcode\c\primer_c_instance\eg1.1\Debug\eg1.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.idb new file mode 100644 index 0000000..3c2b38a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.pdb new file mode 100644 index 0000000..66aea3d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.sln b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.sln new file mode 100644 index 0000000..4a87c39 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eg1.1", "eg1.1.vcxproj", "{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}" +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 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x64.ActiveCfg = Debug|x64 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x64.Build.0 = Debug|x64 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x86.ActiveCfg = Debug|Win32 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x86.Build.0 = Debug|Win32 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x64.ActiveCfg = Release|x64 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x64.Build.0 = Release|x64 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x86.ActiveCfg = Release|Win32 + {C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0EF34464-3D50-4C50-B2CF-7EB6D45CCF25} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj new file mode 100644 index 0000000..c5e9765 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {c6e14a07-3e4f-4e83-bfd3-ed0da8a692fd} + eg11 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.filters new file mode 100644 index 0000000..489a7e9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/.suo new file mode 100644 index 0000000..65891d2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/Browse.VC.db new file mode 100644 index 0000000..1f8f057 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/ipch/AutoPCH/90ea35318f2fa39d/EG10.18.ipch b/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/ipch/AutoPCH/90ea35318f2fa39d/EG10.18.ipch new file mode 100644 index 0000000..cd13750 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/ipch/AutoPCH/90ea35318f2fa39d/EG10.18.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.exe b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.exe new file mode 100644 index 0000000..80d76aa Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.ilk b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.ilk new file mode 100644 index 0000000..ce4cdd0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.log b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.log new file mode 100644 index 0000000..901834d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.log @@ -0,0 +1,5 @@ + eg10.18.c +E:\allcode\c\primer_c_instance\chapter10.18\eg10.18.c(32,71): warning C4048: “int (*)[4]”和“int [2][6]”数组的下标不同 +E:\allcode\c\primer_c_instance\chapter10.18\eg10.18.c(35,55): warning C4048: “int (*)[4]”和“int [3][10]”数组的下标不同 +E:\allcode\c\primer_c_instance\chapter10.18\eg10.18.c(41,35): warning C4028: 形参 3 与声明不同 + chapter10.18.vcxproj -> E:\allcode\c\primer_c_instance\chapter10.18\Debug\chapter10.18.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.pdb b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.pdb new file mode 100644 index 0000000..3d9fcad Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.command.1.tlog new file mode 100644 index 0000000..4282df0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5ab0fa0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b3d07ad Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/chapter10.18.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/chapter10.18.lastbuildstate new file mode 100644 index 0000000..23a6930 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/chapter10.18.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter10.18\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.command.1.tlog new file mode 100644 index 0000000..f84e049 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.read.1.tlog new file mode 100644 index 0000000..3125764 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.write.1.tlog new file mode 100644 index 0000000..dc6d81e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..97f09ef --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter10.18\Debug\chapter10.18.exe +E:\allcode\c\primer_c_instance\chapter10.18\Debug\chapter10.18.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/eg10.18.obj b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/eg10.18.obj new file mode 100644 index 0000000..2cdfec6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/eg10.18.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.idb new file mode 100644 index 0000000..d6ff994 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.pdb new file mode 100644 index 0000000..05557a7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.sln b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.sln new file mode 100644 index 0000000..ede217a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter10.18", "chapter10.18.vcxproj", "{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}" +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 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x64.ActiveCfg = Debug|x64 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x64.Build.0 = Debug|x64 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x86.ActiveCfg = Debug|Win32 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x86.Build.0 = Debug|Win32 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x64.ActiveCfg = Release|x64 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x64.Build.0 = Release|x64 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x86.ActiveCfg = Release|Win32 + {1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7846A074-5DEE-4F4A-A23F-08ED0F5973B5} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj new file mode 100644 index 0000000..a7dd671 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {1ba800e6-6d11-450e-b293-9cb15fd2dbbf} + chapter1018 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj.filters new file mode 100644 index 0000000..832a0d7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter10.18/eg10.18.c b/初试笔记/c_prime_plus习题实现代码/chapter10.18/eg10.18.c new file mode 100644 index 0000000..1d5c80a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter10.18/eg10.18.c @@ -0,0 +1,52 @@ +#include +#define ROWS 3 +#define COLS 4 +int sum2d(int rows, int cols, int ar[3][4]); + +int main(void) +{ + int i, j; + int rs = 3; + int cs = 10; + int junk[ROWS][COLS] = { + {2,4,6,8}, + {3,5,7,9}, + {12,10,8,6} + }; + + int morejunk[ROWS - 1][COLS + 2] = { + {20,30,40,50,60,70}, + {5,6,7,8,9,10} + }; + + int varr[3][10]; + + for (i = 0; i < rs; i++) + for (j = 0; j < cs; j++) + varr[i][j] = i * j + j; + + printf("3x5 array\n"); + printf("Sum of all elements=%d\n", sum2d(ROWS, COLS, junk)); + + printf("2x6 array\n"); + printf("Sum of all elements=%d\n", sum2d(ROWS - 1, COLS + 2, morejunk)); + + printf("3x10 VLA\n"); + printf("Sum of all elements=%d\n", sum2d(rs, cs, varr)); + + return 0; +} + +//䳤βεĺ +int sum2d(int rows, int cols, int ar[3][10]) +{ + int r; + int c; + int tot = 0; + + for (r = 0; r < rows; r++) + for (c = 0; c < cols; c++) + tot += ar[r][c]; + + return tot; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/.suo new file mode 100644 index 0000000..fff8b7f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/Browse.VC.db new file mode 100644 index 0000000..2c0278e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/ipch/AutoPCH/2acd349ebf2e2071/EG11.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/ipch/AutoPCH/2acd349ebf2e2071/EG11.1.ipch new file mode 100644 index 0000000..2e7ed10 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/ipch/AutoPCH/2acd349ebf2e2071/EG11.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/ipch/AutoPCH/d90b7ed22f971186/EG11.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/ipch/AutoPCH/d90b7ed22f971186/EG11.1.ipch new file mode 100644 index 0000000..792ef25 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/ipch/AutoPCH/d90b7ed22f971186/EG11.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.exe new file mode 100644 index 0000000..6a6051b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.ilk new file mode 100644 index 0000000..01fba05 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.log b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.log new file mode 100644 index 0000000..8c8bc27 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.log @@ -0,0 +1,2 @@ + eg11.1.c + chapter11.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter11.1\Debug\chapter11.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.pdb new file mode 100644 index 0000000..32dcd6a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..f009c9b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..e8b4811 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..14698d6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/chapter11.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/chapter11.1.lastbuildstate new file mode 100644 index 0000000..50a683c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/chapter11.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter11.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..a8b2bb6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..8ea6190 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..d1c13c4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..ad9e3c3 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter11.1\Debug\chapter11.1.exe +E:\allcode\c\primer_c_instance\chapter11.1\Debug\chapter11.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.obj b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.obj new file mode 100644 index 0000000..55b2ead Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.pch b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.pch new file mode 100644 index 0000000..ee18532 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.pch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.idb new file mode 100644 index 0000000..f86f299 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.pdb new file mode 100644 index 0000000..3c47ff5 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.idb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.idb new file mode 100644 index 0000000..49e917f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.pdb new file mode 100644 index 0000000..7dbe063 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.sln b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.sln new file mode 100644 index 0000000..0b35c88 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter11.1", "chapter11.1.vcxproj", "{01188642-C363-4E55-8DAB-0EB62B559260}" +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 + {01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x64.ActiveCfg = Debug|x64 + {01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x64.Build.0 = Debug|x64 + {01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x86.ActiveCfg = Debug|Win32 + {01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x86.Build.0 = Debug|Win32 + {01188642-C363-4E55-8DAB-0EB62B559260}.Release|x64.ActiveCfg = Release|x64 + {01188642-C363-4E55-8DAB-0EB62B559260}.Release|x64.Build.0 = Release|x64 + {01188642-C363-4E55-8DAB-0EB62B559260}.Release|x86.ActiveCfg = Release|Win32 + {01188642-C363-4E55-8DAB-0EB62B559260}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {45D9B4A7-6FB0-4E8C-9DD8-DB737075891A} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj new file mode 100644 index 0000000..31a8d4d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {01188642-c363-4e55-8dab-0eb62b559260} + chapter111 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj.filters new file mode 100644 index 0000000..c7b8baf --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.c b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.c new file mode 100644 index 0000000..05cedf2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.c @@ -0,0 +1,25 @@ +#include +#define MSG "I am a symbolic string constant." +#define MAXLENGTH 81 + +int* test(int num[]) +{ + + int* p = num; + return p; +} +void test2( int *p) +{ + printf("%d\n", *p); + printf("%d\n", *(p++)); + printf("%d\n", *(++p)); +} +int main(void) +{ + int num[] = { 1,5,3,4,5,6 }; + int* p = test(num); + //printf("%p\n", *p); + test2(p); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsp b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsp new file mode 100644 index 0000000..9e2711d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsp @@ -0,0 +1,88 @@ +# Microsoft Developer Studio Project File - Name="eg11.1" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=eg11.1 - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "eg11.1.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "eg11.1.mak" CFG="eg11.1 - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "eg11.1 - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "eg11.1 - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "eg11.1 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x804 /d "NDEBUG" +# ADD RSC /l 0x804 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "eg11.1 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x804 /d "_DEBUG" +# ADD RSC /l 0x804 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "eg11.1 - Win32 Release" +# Name "eg11.1 - Win32 Debug" +# Begin Source File + +SOURCE=.\eg11.1.c +# End Source File +# End Target +# End Project diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsw b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsw new file mode 100644 index 0000000..ac278f7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# : ܱ༭ɾùļ + +############################################################################### + +Project: "eg11.1"=.\eg11.1.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.ncb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.ncb new file mode 100644 index 0000000..3805d52 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.ncb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.opt b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.opt new file mode 100644 index 0000000..c81a9db Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.opt differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.plg b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.plg new file mode 100644 index 0000000..cb4b5ee --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.plg @@ -0,0 +1,37 @@ + + +
+

Build Log

+

+--------------------Configuration: eg11.1 - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\Users\18295\AppData\Local\Temp\RSPF55A.tmp" with contents +[ +/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/eg11.1.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c" +] +Creating command line "cl.exe @C:\Users\18295\AppData\Local\Temp\RSPF55A.tmp" +Creating temporary file "C:\Users\18295\AppData\Local\Temp\RSPF55B.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/eg11.1.pdb" /debug /machine:I386 /out:"Debug/eg11.1.exe" /pdbtype:sept +.\Debug\eg11.1.obj +] +Creating command line "link.exe @C:\Users\18295\AppData\Local\Temp\RSPF55B.tmp" +

Output Window

+Compiling... +eg11.1.c +E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(26) : error C2143: syntax error : missing ';' before 'type' +E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : error C2065: 'p' : undeclared identifier +E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : error C2100: illegal indirection +E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : warning C4047: 'function' : 'int *' differs in levels of indirection from 'int ' +E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : warning C4024: 'test2' : different types for formal and actual parameter 1 +ִ cl.exe ʱ. + + + +

Results

+eg11.1.exe - 1 error(s), 0 warning(s) +
+ + diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.exe new file mode 100644 index 0000000..81407d1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.ilk new file mode 100644 index 0000000..d3dd385 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.log b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.log new file mode 100644 index 0000000..c11f36b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.log @@ -0,0 +1,2 @@ + eg11.1.c + chapter11.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter11.1\x64\Debug\chapter11.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.pdb new file mode 100644 index 0000000..49d46c0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..8cbce13 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..dfab23b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f90a536 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/chapter11.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/chapter11.1.lastbuildstate new file mode 100644 index 0000000..6516ebc --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/chapter11.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|x64|E:\allcode\c\primer_c_instance\chapter11.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..f07ca29 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..54945df Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..ed17b93 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..aa8c243 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter11.1\x64\Debug\chapter11.1.exe +E:\allcode\c\primer_c_instance\chapter11.1\x64\Debug\chapter11.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/eg11.1.obj b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/eg11.1.obj new file mode 100644 index 0000000..8334c3e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/eg11.1.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.idb new file mode 100644 index 0000000..c777404 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.pdb new file mode 100644 index 0000000..dd88e82 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/.suo new file mode 100644 index 0000000..adbdcf2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/Browse.VC.db new file mode 100644 index 0000000..0a01c7a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/ipch/AutoPCH/9d97d9f509d8b6ef/EG11.29.ipch b/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/ipch/AutoPCH/9d97d9f509d8b6ef/EG11.29.ipch new file mode 100644 index 0000000..d64b285 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/ipch/AutoPCH/9d97d9f509d8b6ef/EG11.29.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.exe b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.exe new file mode 100644 index 0000000..7c10dac Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.ilk b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.ilk new file mode 100644 index 0000000..39e34fd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.log b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.log new file mode 100644 index 0000000..85c2c66 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.log @@ -0,0 +1,2 @@ + eg11.29.c + chapter11.29.vcxproj -> E:\allcode\c\primer_c_instance\chapter11.29\Debug\chapter11.29.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.pdb new file mode 100644 index 0000000..c68e463 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.command.1.tlog new file mode 100644 index 0000000..109d3d9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.read.1.tlog new file mode 100644 index 0000000..a8f7812 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.write.1.tlog new file mode 100644 index 0000000..c77aef1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/chapter11.29.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/chapter11.29.lastbuildstate new file mode 100644 index 0000000..665de09 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/chapter11.29.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter11.29\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.command.1.tlog new file mode 100644 index 0000000..9153516 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.read.1.tlog new file mode 100644 index 0000000..d4ed79b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.write.1.tlog new file mode 100644 index 0000000..fe75179 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..f897bca --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter11.29\Debug\chapter11.29.exe +E:\allcode\c\primer_c_instance\chapter11.29\Debug\chapter11.29.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/eg11.29.obj b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/eg11.29.obj new file mode 100644 index 0000000..00e8aa1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/eg11.29.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/vc142.idb new file mode 100644 index 0000000..059f2a1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/vc142.pdb new file mode 100644 index 0000000..e6c39c1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.sln b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.sln new file mode 100644 index 0000000..3439462 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter11.29", "chapter11.29.vcxproj", "{EEE7916A-E9D9-42F9-9FF5-4737465D24BF}" +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 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Debug|x64.ActiveCfg = Debug|x64 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Debug|x64.Build.0 = Debug|x64 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Debug|x86.ActiveCfg = Debug|Win32 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Debug|x86.Build.0 = Debug|Win32 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Release|x64.ActiveCfg = Release|x64 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Release|x64.Build.0 = Release|x64 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Release|x86.ActiveCfg = Release|Win32 + {EEE7916A-E9D9-42F9-9FF5-4737465D24BF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F40F5A99-AE63-4242-9ACC-198F176F3CBD} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj new file mode 100644 index 0000000..07eeda2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {eee7916a-e9d9-42f9-9ff5-4737465d24bf} + chapter1129 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj.filters new file mode 100644 index 0000000..8b171d7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/chapter11.29.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter11.29/eg11.29.c b/初试笔记/c_prime_plus习题实现代码/chapter11.29/eg11.29.c new file mode 100644 index 0000000..920eb26 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter11.29/eg11.29.c @@ -0,0 +1,82 @@ +#include +#include +#define SIZE 81 +#define LIM 20 +#define HALT "" + +void stsrt(char* strings[], int num); +char* s_gets1(char* st, int n); +char* s_gets2(char* st, int n); + +int main(void) +{ + char input[LIM][SIZE]; + char* ptstr[LIM]; + int ct = 0; + int k; + + printf("Input up to %d lines,and I will sort them.\n", LIM); + printf("To stop,press the Enter key at a line's start.\n"); + while (ct < LIM && s_gets1(input[ct], SIZE) != NULL && input[ct][0] != '\0') + { + ptstr[ct] = input[ct]; + ct++; + } + stsrt(ptstr, ct); + puts("\nHere's the sorted list:\n"); + for (k = 0; k < ct; k++) + puts(ptstr[k]); + + return 0; +} + +/*ַָ롪*/ +void stsrt(char* strings[], int num) +{ + char* temp; + int top, seek; + + for(top=0;top 0) + { + temp = strings[top]; + strings[top] = strings[seek]; + strings[seek] = temp; + } +} + +char* s_gets1(char* st, int n) +{ + char* ret_val; + int i = 0; + + ret_val = fgets(st, n, stdin); + if (ret_val) + { + while (st[i] != '\n' && st[i] != '\0') + i++; + if (st[i] == '\n') + st[i] = '\0'; + else + while (getchar() != '\n') + continue; + } + + return ret_val; + +} + +char* s_gets2(char* st, int n) +{ + //char line[80]; + char* find; + char* ret_val; + + ret_val=fgets(st,n, stdin); + find = strchr(ret_val, '\n'); + if (find) + *find = '\0'; + + return ret_val; +} diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/.suo new file mode 100644 index 0000000..3728105 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/Browse.VC.db new file mode 100644 index 0000000..e98f069 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/ipch/AutoPCH/7aeced282730c5f9/TEST.ipch b/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/ipch/AutoPCH/7aeced282730c5f9/TEST.ipch new file mode 100644 index 0000000..0094bac Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/.vs/chapter12.1/v16/ipch/AutoPCH/7aeced282730c5f9/TEST.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.exe new file mode 100644 index 0000000..c998621 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.ilk new file mode 100644 index 0000000..5869d81 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.log b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.log new file mode 100644 index 0000000..b336be8 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.log @@ -0,0 +1,2 @@ + test.c + chapter12.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter12.1\Debug\chapter12.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.pdb new file mode 100644 index 0000000..992f4c8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d28b7a6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..a14683e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..c89a243 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/chapter12.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/chapter12.1.lastbuildstate new file mode 100644 index 0000000..5c4179f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/chapter12.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter12.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..0f1137c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..0dd6df6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..aca862e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..4dd4939 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/chapter12.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter12.1\Debug\chapter12.1.exe +E:\allcode\c\primer_c_instance\chapter12.1\Debug\chapter12.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/test.obj b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/test.obj new file mode 100644 index 0000000..c5625e7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/test.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/vc142.idb new file mode 100644 index 0000000..3bb91e8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/vc142.pdb new file mode 100644 index 0000000..e9d844e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter12.1/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.sln b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.sln new file mode 100644 index 0000000..69698fa --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter12.1", "chapter12.1.vcxproj", "{4F748584-BA10-44A3-8B45-CE5241A67298}" +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 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Debug|x64.ActiveCfg = Debug|x64 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Debug|x64.Build.0 = Debug|x64 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Debug|x86.ActiveCfg = Debug|Win32 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Debug|x86.Build.0 = Debug|Win32 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Release|x64.ActiveCfg = Release|x64 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Release|x64.Build.0 = Release|x64 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Release|x86.ActiveCfg = Release|Win32 + {4F748584-BA10-44A3-8B45-CE5241A67298}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4AA1200E-A88B-4EED-8EA4-040878F2787E} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj new file mode 100644 index 0000000..2ed1f08 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {4f748584-ba10-44a3-8b45-ce5241a67298} + chapter121 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj.filters new file mode 100644 index 0000000..e4d19f9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/chapter12.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter12.1/test.c b/初试笔记/c_prime_plus习题实现代码/chapter12.1/test.c new file mode 100644 index 0000000..eaf3066 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter12.1/test.c @@ -0,0 +1,11 @@ +#include + +int time = 0; + +int main(void) +{ + + printf("%d\n", time); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/.suo new file mode 100644 index 0000000..2b72f8e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/Browse.VC.db new file mode 100644 index 0000000..a2aca5c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/ipch/AutoPCH/e17a58cac62b03c5/13.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/ipch/AutoPCH/e17a58cac62b03c5/13.1.ipch new file mode 100644 index 0000000..473891b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/.vs/chapter13.1/v16/ipch/AutoPCH/e17a58cac62b03c5/13.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/13.1.c b/初试笔记/c_prime_plus习题实现代码/chapter13.1/13.1.c new file mode 100644 index 0000000..56fb468 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/13.1.c @@ -0,0 +1,29 @@ +#include +#include +// _CRT_SECURE_NO_WARNINGS + +int main(int argc,char *argv[]) +{ + int ch; + FILE* fp; + unsigned long count = 0; + if (argc != 2) + { + printf("Usage: %s filename\n", argv[0]); + exit(EXIT_FAILURE); + } + if ((fp = fopen(argv[1], "r")) == NULL) + { + printf("Can't open %s\n", argv[1]); + exit(EXIT_FAILURE); + } + while ((ch = getc(fp)) != EOF) + { + putc(ch, stdout); + count++; + } + fclose(fp); + printf("File %s has %lu characters\n", argv[1], count); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/13.1.obj b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/13.1.obj new file mode 100644 index 0000000..84b8942 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/13.1.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.exe new file mode 100644 index 0000000..f373db6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.ilk new file mode 100644 index 0000000..a0e7c0b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.log b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.log new file mode 100644 index 0000000..a7d3926 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.log @@ -0,0 +1,2 @@ + 13.1.c + chapter13.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter13.1\Debug\chapter13.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.pdb new file mode 100644 index 0000000..c18848c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..9834f73 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..330309d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..6935e67 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/chapter13.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/chapter13.1.lastbuildstate new file mode 100644 index 0000000..3c1228f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/chapter13.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter13.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..a5ed775 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..ab064fe Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..7b4e346 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..65f1b88 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/chapter13.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter13.1\Debug\chapter13.1.exe +E:\allcode\c\primer_c_instance\chapter13.1\Debug\chapter13.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/vc142.idb new file mode 100644 index 0000000..a61f46d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/vc142.pdb new file mode 100644 index 0000000..880522f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter13.1/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.sln b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.sln new file mode 100644 index 0000000..16e6ba0 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter13.1", "chapter13.1.vcxproj", "{73521959-3467-4326-82B1-5F0699B3A383}" +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 + {73521959-3467-4326-82B1-5F0699B3A383}.Debug|x64.ActiveCfg = Debug|x64 + {73521959-3467-4326-82B1-5F0699B3A383}.Debug|x64.Build.0 = Debug|x64 + {73521959-3467-4326-82B1-5F0699B3A383}.Debug|x86.ActiveCfg = Debug|Win32 + {73521959-3467-4326-82B1-5F0699B3A383}.Debug|x86.Build.0 = Debug|Win32 + {73521959-3467-4326-82B1-5F0699B3A383}.Release|x64.ActiveCfg = Release|x64 + {73521959-3467-4326-82B1-5F0699B3A383}.Release|x64.Build.0 = Release|x64 + {73521959-3467-4326-82B1-5F0699B3A383}.Release|x86.ActiveCfg = Release|Win32 + {73521959-3467-4326-82B1-5F0699B3A383}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EA1613B3-2E40-4C80-91BB-7E5D545EEB99} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj new file mode 100644 index 0000000..49ec1bb --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {73521959-3467-4326-82b1-5f0699b3a383} + chapter131 + 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;_CRT_SECURE_NO_WARNINGS;%(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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj.filters new file mode 100644 index 0000000..d70556b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter13.1/chapter13.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/.suo new file mode 100644 index 0000000..478a833 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/Browse.VC.db new file mode 100644 index 0000000..4e9a2fc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/ipch/AutoPCH/65497aa4af9f8625/14.2.ipch b/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/ipch/AutoPCH/65497aa4af9f8625/14.2.ipch new file mode 100644 index 0000000..950d0d9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/.vs/chapter14.2/v16/ipch/AutoPCH/65497aa4af9f8625/14.2.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/14.2.c b/初试笔记/c_prime_plus习题实现代码/chapter14.2/14.2.c new file mode 100644 index 0000000..3a33a98 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/14.2.c @@ -0,0 +1,62 @@ +#include +#include +char* s_gets(char* st, int n); +#define MAXTITL 40 +#define MAXAUTL 40 +#define MAXBKS 100 + +struct book { + char title[MAXTITL]; + char author[MAXTITL]; + float value; +}; + +int main(void) +{ + struct book library[MAXBKS]; + int count = 0; + int index; + + printf("Please enter the book title.\n"); + printf("Press [enter] at the start of a line to stop.\n"); + while (count < MAXBKS && s_gets(library[count].title, MAXTITL) != NULL && library[count].title[0] != '\0') + { + printf("Now enter the author.\n"); + s_gets(library[count].author, MAXAUTL); + printf("Now enter the value.\n"); + scanf("%f", &library[count++].value); + while (getchar() != '\n') + continue; + if (count < MAXBKS) + printf("Enter the next title.\n"); + } + + if (count > 0) + { + printf("Here is the list of your books:\n"); + for (index = 0; index < count; index++) + printf("%s by %s:$%.2f\n", library[index].title, library[index].author, library[index].value); + } + else + printf("No books?Too bad.\n"); + + return 0; +} + +char* s_gets(char* st, int n) +{ + char* ret_val; + char* find; + + ret_val = fgets(st, n, stdin); + if (ret_val) + { + find = strchr(st, '\n'); + if (find) + *find = '\0'; + else + while (getchar() != '\n') + continue; + } + return ret_val; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/14.2.obj b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/14.2.obj new file mode 100644 index 0000000..5b44955 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/14.2.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.exe b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.exe new file mode 100644 index 0000000..33f0b9c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.ilk b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.ilk new file mode 100644 index 0000000..9995534 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.log b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.log new file mode 100644 index 0000000..5a1d468 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.log @@ -0,0 +1,2 @@ + 14.2.c + chapter14.2.vcxproj -> E:\allcode\c\primer_c_instance\chapter14.2\Debug\chapter14.2.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.pdb b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.pdb new file mode 100644 index 0000000..c70e99d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.command.1.tlog new file mode 100644 index 0000000..7e1a376 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..1c8953f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3c52194 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/chapter14.2.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/chapter14.2.lastbuildstate new file mode 100644 index 0000000..b7bd7d6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/chapter14.2.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter14.2\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.command.1.tlog new file mode 100644 index 0000000..73c02c2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.read.1.tlog new file mode 100644 index 0000000..4eb6030 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.write.1.tlog new file mode 100644 index 0000000..ba8f5bd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..11f480f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/chapter14.2.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter14.2\Debug\chapter14.2.exe +E:\allcode\c\primer_c_instance\chapter14.2\Debug\chapter14.2.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/vc142.idb new file mode 100644 index 0000000..22c12c1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/vc142.pdb new file mode 100644 index 0000000..f4f3ad1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter14.2/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.sln b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.sln new file mode 100644 index 0000000..33ea661 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter14.2", "chapter14.2.vcxproj", "{5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}" +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 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Debug|x64.ActiveCfg = Debug|x64 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Debug|x64.Build.0 = Debug|x64 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Debug|x86.ActiveCfg = Debug|Win32 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Debug|x86.Build.0 = Debug|Win32 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Release|x64.ActiveCfg = Release|x64 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Release|x64.Build.0 = Release|x64 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Release|x86.ActiveCfg = Release|Win32 + {5E6FAC95-5412-4A3A-8B0F-C8F168E9EB26}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EE77A0C9-9242-4AE5-844E-F067084EAA5A} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj new file mode 100644 index 0000000..698df2d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {5e6fac95-5412-4a3a-8b0f-c8f168e9eb26} + chapter142 + 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;_CRT_SECURE_NO_WARNINGS;%(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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj.filters new file mode 100644 index 0000000..16a2b0e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter14.2/chapter14.2.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/ProjectSettings.json b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/ProjectSettings.json new file mode 100644 index 0000000..e257ff9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": "无配置" +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/VSWorkspaceState.json b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..6b61141 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/.suo new file mode 100644 index 0000000..5359a5b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/Browse.VC.db new file mode 100644 index 0000000..1de251a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/ipch/AutoPCH/abea507b4d0b57ef/EG16.17.ipch b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/ipch/AutoPCH/abea507b4d0b57ef/EG16.17.ipch new file mode 100644 index 0000000..bd1d363 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/chapter16.17/v16/ipch/AutoPCH/abea507b4d0b57ef/EG16.17.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/slnx.sqlite b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/slnx.sqlite new file mode 100644 index 0000000..07058d4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/.vs/slnx.sqlite differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.exe b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.exe new file mode 100644 index 0000000..03208df Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.ilk b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.ilk new file mode 100644 index 0000000..6f839e9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.log b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.log new file mode 100644 index 0000000..a65daf2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.log @@ -0,0 +1,2 @@ + eg16.17.c + chapter16.17.vcxproj -> E:\allcode\c\primer_c_instance\chapter16.17\Debug\chapter16.17.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.pdb b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.pdb new file mode 100644 index 0000000..c9fdcd4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.command.1.tlog new file mode 100644 index 0000000..ea0c6de Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.read.1.tlog new file mode 100644 index 0000000..bdfef89 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.write.1.tlog new file mode 100644 index 0000000..c33f343 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/chapter16.17.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/chapter16.17.lastbuildstate new file mode 100644 index 0000000..b49a070 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/chapter16.17.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter16.17\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.command.1.tlog new file mode 100644 index 0000000..0cd2dba Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.read.1.tlog new file mode 100644 index 0000000..5bf6788 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.write.1.tlog new file mode 100644 index 0000000..60a5a09 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5bed799 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/chapter16.17.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter16.17\Debug\chapter16.17.exe +E:\allcode\c\primer_c_instance\chapter16.17\Debug\chapter16.17.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/eg16.17.obj b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/eg16.17.obj new file mode 100644 index 0000000..1528671 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/eg16.17.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/vc142.idb new file mode 100644 index 0000000..2f6eb04 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/vc142.pdb new file mode 100644 index 0000000..e10e49b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter16.17/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.sln b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.sln new file mode 100644 index 0000000..dd84bd2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter16.17", "chapter16.17.vcxproj", "{05AEB79B-D4F2-4C34-9C9A-1008198EAB37}" +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 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Debug|x64.ActiveCfg = Debug|x64 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Debug|x64.Build.0 = Debug|x64 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Debug|x86.ActiveCfg = Debug|Win32 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Debug|x86.Build.0 = Debug|Win32 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Release|x64.ActiveCfg = Release|x64 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Release|x64.Build.0 = Release|x64 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Release|x86.ActiveCfg = Release|Win32 + {05AEB79B-D4F2-4C34-9C9A-1008198EAB37}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {54B1EEB8-3A24-4603-9759-0565C56F2609} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj new file mode 100644 index 0000000..534f0fa --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {05aeb79b-d4f2-4c34-9c9a-1008198eab37} + chapter1617 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj.filters new file mode 100644 index 0000000..a0b5e76 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj.user new file mode 100644 index 0000000..5df420f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/chapter16.17.vcxproj.user @@ -0,0 +1,6 @@ + + + + false + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter16.17/eg16.17.c b/初试笔记/c_prime_plus习题实现代码/chapter16.17/eg16.17.c new file mode 100644 index 0000000..07d8aa6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter16.17/eg16.17.c @@ -0,0 +1,53 @@ +#include +#include + +#define NUM 40 +void fillarray(double ar[], int n); +void showarray(const double ar[], int n); +int mycomp(const void* p1, const void* p2); + +int main(void) +{ + double vals[NUM]; + fillarray(vals, NUM); + puts("Random list:"); + showarray(vals, NUM); + qsort(vals, NUM, sizeof(double), mycomp); + puts("\nSorted list:"); + showarray(vals, NUM); + return 0; +} +void fillarray(double ar[], int n) +{ + int index; + + for (index = 0; index < n; index++) + ar[index] = (double)rand() / ((double)rand() + 0.1); +} + +void showarray(const double ar[], int n) +{ + int index; + + for (index = 0; index < n; index++) + { + printf("%9.4f", ar[index]); + if (index % 6 == 5) + putchar('\n'); + } + if (index % 6 != 0) + putchar('\n'); +} + +int mycomp(const void* p1, const void* p2) +{ + const double* a1 = (const double*)p1; + const double* a2 = (const double*)p2; + + if (*a1 < *a2) + return -1; + else if (*a1 == *a2) + return 0; + else + return 1; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/.suo new file mode 100644 index 0000000..37c48ba Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/Browse.VC.db new file mode 100644 index 0000000..e14258e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/ipch/AutoPCH/5d3dd07439575f59/EG17.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/ipch/AutoPCH/5d3dd07439575f59/EG17.1.ipch new file mode 100644 index 0000000..af0d798 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/.vs/chapter17.1/v16/ipch/AutoPCH/5d3dd07439575f59/EG17.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.exe new file mode 100644 index 0000000..eb4b592 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.ilk new file mode 100644 index 0000000..6a4342e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.log b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.log new file mode 100644 index 0000000..8c9aa98 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.log @@ -0,0 +1,3 @@ + eg17.1.c +E:\allcode\c\primer_c_instance\chapter17.1\eg17.1.c(23,31): warning C4013: “malloc”未定义;假设外部返回 int + chapter17.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter17.1\Debug\chapter17.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.pdb new file mode 100644 index 0000000..5ea5948 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..f8c04e2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..87dd5b9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3fd697f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/chapter17.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/chapter17.1.lastbuildstate new file mode 100644 index 0000000..439bbbe --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/chapter17.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter17.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..63aeb23 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..c7c589e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..3952aaf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..666d889 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/chapter17.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter17.1\Debug\chapter17.1.exe +E:\allcode\c\primer_c_instance\chapter17.1\Debug\chapter17.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/eg17.1.obj b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/eg17.1.obj new file mode 100644 index 0000000..f9b1efb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/eg17.1.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/vc142.idb new file mode 100644 index 0000000..e0eb4ee Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/vc142.pdb new file mode 100644 index 0000000..3bc0445 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.1/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.sln b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.sln new file mode 100644 index 0000000..03e7556 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter17.1", "chapter17.1.vcxproj", "{565B8768-F92A-40FB-9F9C-A14AC4383E39}" +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 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Debug|x64.ActiveCfg = Debug|x64 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Debug|x64.Build.0 = Debug|x64 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Debug|x86.ActiveCfg = Debug|Win32 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Debug|x86.Build.0 = Debug|Win32 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Release|x64.ActiveCfg = Release|x64 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Release|x64.Build.0 = Release|x64 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Release|x86.ActiveCfg = Release|Win32 + {565B8768-F92A-40FB-9F9C-A14AC4383E39}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {196FF163-58E9-48F3-8644-CFDED7B4ACB9} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj new file mode 100644 index 0000000..e7022f9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {565b8768-f92a-40fb-9f9c-a14ac4383e39} + chapter171 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj.filters new file mode 100644 index 0000000..036ffad --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/chapter17.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.1/eg17.1.c b/初试笔记/c_prime_plus习题实现代码/chapter17.1/eg17.1.c new file mode 100644 index 0000000..be6eb3f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.1/eg17.1.c @@ -0,0 +1,61 @@ +/*films1.c*/ +#include +#include +#define TSIZE 45 +//#define FMAX 5 + +struct film { + char title[TSIZE]; + int rating; +}; +char* s_gets(char str[], int lim); +int main(void) +{ + //struct film movies[FMAX]; + struct film* movies; + int i = 0,n; + int j; + + printf("Enter the maximum number of movies you'll enter:\n"); + scanf_s("%d", &n); + while (getchar() != '\n') + continue; + movies = (struct film*)malloc(n * sizeof(struct film)); + puts("Enter first movies title:"); + while (i < n && s_gets(movies[i].title, TSIZE) != NULL && movies[i].title[0] != '\0') + { + puts("Enter your rating<0-10>:"); + scanf_s("%d", &movies[i++].rating); + while (getchar() != '\n') + continue; + puts("Enter next movie title (empty line to stop):"); + } + if (i == 0) + printf("No data entered."); + else + printf("Here is the movie list:\n"); + + for (j = 0; j < i; j++) + printf("Movie:%s Rating:%d\n", movies[j].title, movies[j].rating); + printf("Bye!\n"); + + return 0; +} + +char* s_gets(char* st, int n) +{ + char* ret_val; + char* find; + + ret_val = fgets(st, n, stdin); + if (ret_val) + { + find = strchr(st, '\n'); + if (find) + *find = '\0'; + else + while (getchar() != '\n') + continue; + } + return ret_val; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/.suo new file mode 100644 index 0000000..726f29f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/Browse.VC.db new file mode 100644 index 0000000..c289ebd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/ipch/AutoPCH/23895078f3b3b410/ADT.ipch b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/ipch/AutoPCH/23895078f3b3b410/ADT.ipch new file mode 100644 index 0000000..d8c7597 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/ipch/AutoPCH/23895078f3b3b410/ADT.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/ipch/AutoPCH/bba977d05b4a94e3/EG17.2.ipch b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/ipch/AutoPCH/bba977d05b4a94e3/EG17.2.ipch new file mode 100644 index 0000000..29f22bf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/.vs/chapter17.2/v16/ipch/AutoPCH/bba977d05b4a94e3/EG17.2.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/adt.obj b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/adt.obj new file mode 100644 index 0000000..a3b0f6f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/adt.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.exe b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.exe new file mode 100644 index 0000000..74c37ed Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.ilk b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.ilk new file mode 100644 index 0000000..a76957d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.log b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.log new file mode 100644 index 0000000..52a83e4 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.log @@ -0,0 +1,2 @@ + adt.c + chapter17.2.vcxproj -> E:\allcode\c\primer_c_instance\chapter17.2\Debug\chapter17.2.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.pdb b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.pdb new file mode 100644 index 0000000..db60c38 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.command.1.tlog new file mode 100644 index 0000000..0a24d63 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2248998 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..61b1975 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/chapter17.2.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/chapter17.2.lastbuildstate new file mode 100644 index 0000000..8d0f8cb --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/chapter17.2.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter17.2\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.command.1.tlog new file mode 100644 index 0000000..295019f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.read.1.tlog new file mode 100644 index 0000000..00d9277 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.write.1.tlog new file mode 100644 index 0000000..973f0cf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..74210dc --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/chapter17.2.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter17.2\Debug\chapter17.2.exe +E:\allcode\c\primer_c_instance\chapter17.2\Debug\chapter17.2.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/eg17.2.obj b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/eg17.2.obj new file mode 100644 index 0000000..1897804 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/eg17.2.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/vc142.idb new file mode 100644 index 0000000..9df8daa Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/vc142.pdb new file mode 100644 index 0000000..68155df Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter17.2/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/adt.c b/初试笔记/c_prime_plus习题实现代码/chapter17.2/adt.c new file mode 100644 index 0000000..3e49222 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/adt.c @@ -0,0 +1,91 @@ +#include +#include +#include "adt.h" + +static void CopyToNode(Item item, Node* pnode); + +void InitializeList(List* plist) { + *plist = NULL; +} + +/*Ϊգtrue*/ +bool ListIsEmpty(const List* plist) +{ + Node* pt; + bool full; + + pt = (Node*)malloc(sizeof(Node)); + if (pt == NULL) + full = true; + else + full = false; + free(pt); + + return full; +} +/*ؽڵ*/ +unsigned int ListItemCount(const List* plist) +{ + unsigned int count = 0; + Node* pnode = *plist; + + while (pnode != NULL) + { + ++count; + pnode = pnode->next; + } + + return count; +} +/*ڵ㣬plistָĩβʵ֣*/ +bool AddItem(Item item, List* plist) +{ + Node* pnew; + Node* scan = *plist; + + pnew = (Node*)malloc(sizeof(Node)); + if (pnew == NULL) + return false; + + CopyToNode(item, pnew); + pnew->next = NULL; + if (scan == NULL) + *plist = pnew; + else { + while (scan->next != NULL) + scan = scan->next; + scan->next = pnew; + } + return true; +} + +/*ÿڵ㲢ִpfunָĺ*/ +void Traverse(const List* plist, void(*pfun)(Item item)) +{ + Node* pnode = *plist; + + while (pnode != NULL) + { + (*pfun)(pnode->item); + pnode = pnode->next; + } +} + +/*ͷmallocڴ*/ +/*ָΪNULL*/ +void EmptyTheList(List* plist) +{ + Node* psave; + + while (*plist != NULL) + { + psave = (*plist)->next; + free(*plist); + *plist = psave; + } +} +/*ֲ*/ +/*һĿڵ*/ +static void CopyToNode(Item item, Node* pnode) { + pnode->item = item; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/adt.h b/初试笔记/c_prime_plus习题实现代码/chapter17.2/adt.h new file mode 100644 index 0000000..317cda3 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/adt.h @@ -0,0 +1,35 @@ +#ifndef LIST_H_ +#define LIST_H_ +#include + +#define TSIZE 45 +struct film +{ + char title[TSIZE]; + int rating; +}; + +typedef struct film Item; + +typedef struct node +{ + Item item; + struct node* next; +}Node; + +typedef Node* List; + +void InitializeList(List* plist); + +bool ListIsEmpty(const List* plist); + +bool ListIsFull(const List* plist); + +unsigned int ListItemCount(const List* plist); + +bool AddItem(Item item, List* plist); + +void Traverse(const List* plist, void(*pfun)(Item item)); + +void EmptyTheList(List* plist); +#endif \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.sln b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.sln new file mode 100644 index 0000000..03c5bda --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter17.2", "chapter17.2.vcxproj", "{D64ECACB-A679-4EF2-B38A-DBC92D160CF1}" +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 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Debug|x64.ActiveCfg = Debug|x64 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Debug|x64.Build.0 = Debug|x64 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Debug|x86.ActiveCfg = Debug|Win32 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Debug|x86.Build.0 = Debug|Win32 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Release|x64.ActiveCfg = Release|x64 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Release|x64.Build.0 = Release|x64 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Release|x86.ActiveCfg = Release|Win32 + {D64ECACB-A679-4EF2-B38A-DBC92D160CF1}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3272BADE-120B-4FCD-8658-4D674658908F} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj new file mode 100644 index 0000000..1684c58 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj @@ -0,0 +1,151 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + + + + + 16.0 + Win32Proj + {d64ecacb-a679-4ef2-b38a-dbc92d160cf1} + chapter172 + 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;_CRT_SECURE_NO_WARNINGS;%(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 + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj.filters new file mode 100644 index 0000000..f3ef870 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/chapter17.2.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter17.2/eg17.2.c b/初试笔记/c_prime_plus习题实现代码/chapter17.2/eg17.2.c new file mode 100644 index 0000000..1def6c2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter17.2/eg17.2.c @@ -0,0 +1,80 @@ +/*films2.c*/ +#include +#include +#include +#define TSIZE 45 + +struct film { + char title[TSIZE]; + int rating; + struct film* next; +}; +char* s_gets(char* st, int n); + +int main(void) +{ + struct film * head = NULL; + struct film * prev, * current; + char input[TSIZE]; + + prev = NULL; + + //ռ洢Ϣ + puts("Enter first movie title:"); + while (s_gets(input, TSIZE) != NULL && input[0] != '\0') + { + current = (struct film*)malloc(sizeof(struct film)); + if (head == NULL) + head = current; + else + prev->next = current; + current->next = NULL; + strcpy(current->title, input); + puts("Enter your rating<0-10>:"); + scanf_s("%d", ¤t->rating); + while (getchar() != '\n') + continue; + puts("Enter next movie title (empty line to stop):"); + prev = current; + } + //ʾӰб + if (head == NULL) + printf("No data entered."); + else + printf("Here is the movie list:\n"); + current = head; + while (current != NULL) + { + printf("Movie:%s Rating:%d\n", current->title, current->rating); + current = current->next; + } + //ͷѷڴ + current = head; + while (current != NULL) + { + current = head; + head = current->next; + free(current); + } + printf("Bye!\n"); + + return 0; +} + +char* s_gets(char* st, int n) +{ + char* ret_val; + char* find; + + ret_val = fgets(st, n, stdin); + if (ret_val) + { + find = strchr(st, '\n'); + if (find) + *find = '\0'; + else + while (getchar() != '\n') + continue; + } + return ret_val; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/.suo new file mode 100644 index 0000000..f284e8d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/Browse.VC.db new file mode 100644 index 0000000..78897ff Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/ipch/AutoPCH/fdab47e6f1ae2c9b/PRACTICE2.12.ipch b/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/ipch/AutoPCH/fdab47e6f1ae2c9b/PRACTICE2.12.ipch new file mode 100644 index 0000000..263169d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/.vs/eg2.0/v16/ipch/AutoPCH/fdab47e6f1ae2c9b/PRACTICE2.12.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.sln b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.sln new file mode 100644 index 0000000..4779fbb --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eg2.0", "eg2.0.vcxproj", "{1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}" +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 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Debug|x64.ActiveCfg = Debug|x64 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Debug|x64.Build.0 = Debug|x64 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Debug|x86.ActiveCfg = Debug|Win32 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Debug|x86.Build.0 = Debug|Win32 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Release|x64.ActiveCfg = Release|x64 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Release|x64.Build.0 = Release|x64 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Release|x86.ActiveCfg = Release|Win32 + {1F38CB0C-ABED-4B0C-935B-38DEB0049DBF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5776C0C3-098B-488D-BB8D-F61A9A73E023} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj new file mode 100644 index 0000000..da41672 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {1f38cb0c-abed-4b0c-935b-38deb0049dbf} + eg20 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj.filters new file mode 100644 index 0000000..29bed47 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/eg2.0.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/practice2.12.c b/初试笔记/c_prime_plus习题实现代码/chapter2.0/practice2.12.c new file mode 100644 index 0000000..d47474b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/practice2.12.c @@ -0,0 +1,21 @@ +#include + +int main(void) { + /*first*/ + /* + printf("Gustav Mahler\n"); + printf("Gustav\n"); + printf("Mahler\n"); */ + + /*second*//* + char name[20]= "Niu Kaixin"; + char address[20] = "Henan provence"; + printf("My name is %s,and I come from %s.\n",name,address);*/ + + /*third*/ + int age = 22; + int day = age * 365; + printf("You life include %d days.\n"); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.exe b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.exe new file mode 100644 index 0000000..97e84b9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.iobj b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.iobj new file mode 100644 index 0000000..c7ac5c7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.ipdb new file mode 100644 index 0000000..816fbf6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.log b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.log new file mode 100644 index 0000000..79a7f5f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.log @@ -0,0 +1,10 @@ + practice2.12.c +E:\allcode\c\primer_c_instance\eg2.0\practice2.12.c(18,9): warning C4473: “printf”: 没有为格式字符串传递足够的参数 +E:\allcode\c\primer_c_instance\eg2.0\practice2.12.c(18,9): message : 占位符和其参数预计 1 可变参数,但提供的却是 0 参数 +E:\allcode\c\primer_c_instance\eg2.0\practice2.12.c(18,9): message : 缺失的可变参数 1 为格式字符串“%d”所需 + 正在生成代码 + 1 of 4 functions (25.0%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + eg2.0.vcxproj -> E:\allcode\c\primer_c_instance\eg2.0\x64\Release\eg2.0.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.pdb b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.pdb new file mode 100644 index 0000000..7f15c9f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.command.1.tlog new file mode 100644 index 0000000..f9ace59 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d45895b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.write.1.tlog new file mode 100644 index 0000000..10f2473 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/eg2.0.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/eg2.0.lastbuildstate new file mode 100644 index 0000000..110a584 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/eg2.0.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|x64|E:\allcode\c\primer_c_instance\eg2.0\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/eg2.0.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/eg2.0.write.1u.tlog new file mode 100644 index 0000000..1ce88a9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/eg2.0.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.command.1.tlog new file mode 100644 index 0000000..9e4d053 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.read.1.tlog new file mode 100644 index 0000000..0b352f7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.write.1.tlog new file mode 100644 index 0000000..d119e61 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5b6e97c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/eg2.0.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\eg2.0\x64\Release\eg2.0.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/practice2.12.obj b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/practice2.12.obj new file mode 100644 index 0000000..f191d78 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/practice2.12.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/vc142.pdb new file mode 100644 index 0000000..a30a10d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.0/x64/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/.suo new file mode 100644 index 0000000..10eeb3e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/Browse.VC.db new file mode 100644 index 0000000..7c8a7cc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/ipch/AutoPCH/efd80b04dfa2162e/2.1.ipch b/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/ipch/AutoPCH/efd80b04dfa2162e/2.1.ipch new file mode 100644 index 0000000..fa2f1a4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/.vs/eg2.1/v16/ipch/AutoPCH/efd80b04dfa2162e/2.1.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/2.1.c b/初试笔记/c_prime_plus习题实现代码/chapter2.1/2.1.c new file mode 100644 index 0000000..ceb4898 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/2.1.c @@ -0,0 +1,10 @@ +#include +int main(void) /*һ򵥵c*/ +{ + int num; /*һΪnumı*/ + num = 1; /*Ϊnumֵ*/ + printf("I am a simple"); /*ʹprintf*/ + printf("computer.\n"); + printf("My favorite number is %d because it is first.\n", num); + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/2.1.obj b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/2.1.obj new file mode 100644 index 0000000..cf8da01 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/2.1.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.exe b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.exe new file mode 100644 index 0000000..c99504d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.ilk b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.ilk new file mode 100644 index 0000000..c6aad6d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.log b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.log new file mode 100644 index 0000000..2a64e34 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.log @@ -0,0 +1,2 @@ + 2.1.c + eg2.1.vcxproj -> E:\allcode\c\primer_c_instance\eg2.1\Debug\eg2.1.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.pdb b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.pdb new file mode 100644 index 0000000..644e36d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..53ed40a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..b6e5d0f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f380b4c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/eg2.1.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/eg2.1.lastbuildstate new file mode 100644 index 0000000..f03aaa3 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/eg2.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\eg2.1\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..9ad39f9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..6896108 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..01655a1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..19492a6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/eg2.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\eg2.1\Debug\eg2.1.exe +E:\allcode\c\primer_c_instance\eg2.1\Debug\eg2.1.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/vc142.idb new file mode 100644 index 0000000..49b4326 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/vc142.pdb new file mode 100644 index 0000000..690703c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter2.1/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.sln b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.sln new file mode 100644 index 0000000..9cad10a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eg2.1", "eg2.1.vcxproj", "{B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}" +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 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Debug|x64.ActiveCfg = Debug|x64 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Debug|x64.Build.0 = Debug|x64 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Debug|x86.ActiveCfg = Debug|Win32 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Debug|x86.Build.0 = Debug|Win32 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Release|x64.ActiveCfg = Release|x64 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Release|x64.Build.0 = Release|x64 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Release|x86.ActiveCfg = Release|Win32 + {B3E956FF-3C31-48DE-A291-2DF9C8FBD3E4}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E7D08C1D-C992-4F3F-90FA-2200E5155443} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj new file mode 100644 index 0000000..5d0c212 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b3e956ff-3c31-48de-a291-2df9c8fbd3e4} + eg21 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj.filters new file mode 100644 index 0000000..9270886 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter2.1/eg2.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/.suo new file mode 100644 index 0000000..a1fa227 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/Browse.VC.db new file mode 100644 index 0000000..bd312d1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/ipch/AutoPCH/e1c21ba8fb805c5d/EG3.10.ipch b/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/ipch/AutoPCH/e1c21ba8fb805c5d/EG3.10.ipch new file mode 100644 index 0000000..480dbaf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/.vs/chapter3.10/v16/ipch/AutoPCH/e1c21ba8fb805c5d/EG3.10.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.exe b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.exe new file mode 100644 index 0000000..3029d12 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.iobj b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.iobj new file mode 100644 index 0000000..5a567a6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.ipdb new file mode 100644 index 0000000..1c682ae Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.log b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.log new file mode 100644 index 0000000..d45593c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.log @@ -0,0 +1,7 @@ + eg3.10.c + 正在生成代码 + 1 of 7 functions (14.3%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter3.10.vcxproj -> E:\allcode\c\primer_c_instance\chapter3.10\Release\chapter3.10.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.pdb b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.pdb new file mode 100644 index 0000000..24ea037 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.command.1.tlog new file mode 100644 index 0000000..6089104 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d6cf470 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.write.1.tlog new file mode 100644 index 0000000..2e9750d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/chapter3.10.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/chapter3.10.lastbuildstate new file mode 100644 index 0000000..b15227e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/chapter3.10.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter3.10\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/chapter3.10.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/chapter3.10.write.1u.tlog new file mode 100644 index 0000000..178eefd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/chapter3.10.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.command.1.tlog new file mode 100644 index 0000000..75089e3 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.read.1.tlog new file mode 100644 index 0000000..05d012b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.write.1.tlog new file mode 100644 index 0000000..2f0359a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b898008 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/chapter3.10.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter3.10\Release\chapter3.10.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/eg3.10.obj b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/eg3.10.obj new file mode 100644 index 0000000..3b98c08 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/eg3.10.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/vc142.pdb new file mode 100644 index 0000000..c8047b0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.10/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.sln b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.sln new file mode 100644 index 0000000..a160399 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter3.10", "chapter3.10.vcxproj", "{391A1F36-B862-4A1F-B122-6EC2DC30453D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {391A1F36-B862-4A1F-B122-6EC2DC30453D}.Debug|x86.ActiveCfg = Debug|Win32 + {391A1F36-B862-4A1F-B122-6EC2DC30453D}.Debug|x86.Build.0 = Debug|Win32 + {391A1F36-B862-4A1F-B122-6EC2DC30453D}.Release|x86.ActiveCfg = Release|Win32 + {391A1F36-B862-4A1F-B122-6EC2DC30453D}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A1266EC6-D1C1-4805-A9B7-1174EF1DBCA6} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj new file mode 100644 index 0000000..80c0d5a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {391a1f36-b862-4a1f-b122-6ec2dc30453d} + chapter310 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj.filters new file mode 100644 index 0000000..1721df4 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/chapter3.10.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.10/eg3.10.c b/初试笔记/c_prime_plus习题实现代码/chapter3.10/eg3.10.c new file mode 100644 index 0000000..a3dbee0 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.10/eg3.10.c @@ -0,0 +1,13 @@ +#include +int main(void) +{ + float salary; + + printf("\aEnter your desired monthly salary:"); + printf("$_______\b\b\b\b\b\b\b"); + scanf_s("%f", &salary); + printf("\n\t$%.2f a month is $%.2f a year.", salary, salary * 12.0); + printf("\rGee!\n"); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/.suo new file mode 100644 index 0000000..3ad58f7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/Browse.VC.db new file mode 100644 index 0000000..52a3731 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/ipch/AutoPCH/2c24b1e48271a423/3.4.ipch b/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/ipch/AutoPCH/2c24b1e48271a423/3.4.ipch new file mode 100644 index 0000000..2b4d4ee Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/.vs/chapter3.40/v16/ipch/AutoPCH/2c24b1e48271a423/3.4.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/3.4.c b/初试笔记/c_prime_plus习题实现代码/chapter3.40/3.4.c new file mode 100644 index 0000000..5ecab49 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/3.4.c @@ -0,0 +1,16 @@ +#include +int main(void) { + unsigned int un = 3000000000;/*int is 32 bit,and short is 16 bit system.*/ + short end = 200; + long big = 65537; + long long verybig = 12345678908642; + + printf("un=%u and not %d\n",un,un); + printf("end=%hd and %d\n", end, end); + printf("big=%ld and not %hd\n", big, big); + printf("verybig=%lld and not %ld\n", verybig, verybig); + system("pause"); + printf("hi!\007\n"); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/3.4.obj b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/3.4.obj new file mode 100644 index 0000000..c492c37 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/3.4.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.exe b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.exe new file mode 100644 index 0000000..3683ba0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.iobj b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.iobj new file mode 100644 index 0000000..21ea0bb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.ipdb new file mode 100644 index 0000000..976594f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.log b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.log new file mode 100644 index 0000000..bf42624 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.log @@ -0,0 +1,11 @@ + 3.4.c +E:\allcode\c\primer_c_instance\chapter3.40\3.4.c(11,9): warning C4477: “printf”: 格式字符串“%ld”需要类型“long”的参数,但可变参数 2 拥有了类型“__int64” +E:\allcode\c\primer_c_instance\chapter3.40\3.4.c(11,9): message : 请考虑在格式字符串中使用“%lld” +E:\allcode\c\primer_c_instance\chapter3.40\3.4.c(11,9): message : 请考虑在格式字符串中使用“%I64d” +E:\allcode\c\primer_c_instance\chapter3.40\3.4.c(12,8): warning C4013: “system”未定义;假设外部返回 int + 正在生成代码 + 1 of 4 functions (25.0%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter3.40.vcxproj -> E:\allcode\c\primer_c_instance\chapter3.40\Release\chapter3.40.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.pdb b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.pdb new file mode 100644 index 0000000..c38d231 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.command.1.tlog new file mode 100644 index 0000000..31dad60 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.read.1.tlog new file mode 100644 index 0000000..0b7feca Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.write.1.tlog new file mode 100644 index 0000000..5c485a7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/chapter3.40.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/chapter3.40.lastbuildstate new file mode 100644 index 0000000..8e82ce6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/chapter3.40.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter3.40\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/chapter3.40.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/chapter3.40.write.1u.tlog new file mode 100644 index 0000000..98d06e2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/chapter3.40.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.command.1.tlog new file mode 100644 index 0000000..cb2da2d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.read.1.tlog new file mode 100644 index 0000000..795cf09 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.write.1.tlog new file mode 100644 index 0000000..69bf014 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..7a4ffb5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/chapter3.40.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter3.40\Release\chapter3.40.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/vc142.pdb new file mode 100644 index 0000000..9d21000 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3.40/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.sln b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.sln new file mode 100644 index 0000000..52cfdcf --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter3.40", "chapter3.40.vcxproj", "{2DC632CD-3FFB-4921-9E26-BA1E4726F4DF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2DC632CD-3FFB-4921-9E26-BA1E4726F4DF}.Debug|x86.ActiveCfg = Debug|Win32 + {2DC632CD-3FFB-4921-9E26-BA1E4726F4DF}.Debug|x86.Build.0 = Debug|Win32 + {2DC632CD-3FFB-4921-9E26-BA1E4726F4DF}.Release|x86.ActiveCfg = Release|Win32 + {2DC632CD-3FFB-4921-9E26-BA1E4726F4DF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B42D4F39-8AF9-431F-977C-2359068FBCA4} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj new file mode 100644 index 0000000..d64ebfc --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {2dc632cd-3ffb-4921-9e26-ba1e4726f4df} + chapter340 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj.filters new file mode 100644 index 0000000..01685e5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3.40/chapter3.40.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/.suo new file mode 100644 index 0000000..daaa4a9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/Browse.VC.db new file mode 100644 index 0000000..25f1a2d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/ipch/AutoPCH/14699193e6c4913f/3.3.ipch b/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/ipch/AutoPCH/14699193e6c4913f/3.3.ipch new file mode 100644 index 0000000..58a47e0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/.vs/charter3/v16/ipch/AutoPCH/14699193e6c4913f/3.3.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/3.3.c b/初试笔记/c_prime_plus习题实现代码/chapter3/3.3.c new file mode 100644 index 0000000..b09c267 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/3.3.c @@ -0,0 +1,9 @@ +#include +int main(void) { + int x = 100; + + printf("dec=%d;octa=%o;hex=%x\n", x, x, x); + printf("dec=%d;octa=%#o;hex=%#x\n", x, x, x); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.sln b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.sln new file mode 100644 index 0000000..aa6f7ba --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "charter3", "charter3.vcxproj", "{9CA682D3-645C-4E24-8539-121F5BEA338A}" +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 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Debug|x64.ActiveCfg = Debug|x64 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Debug|x64.Build.0 = Debug|x64 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Debug|x86.ActiveCfg = Debug|Win32 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Debug|x86.Build.0 = Debug|Win32 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Release|x64.ActiveCfg = Release|x64 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Release|x64.Build.0 = Release|x64 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Release|x86.ActiveCfg = Release|Win32 + {9CA682D3-645C-4E24-8539-121F5BEA338A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A278E62E-7B87-4DB2-91F9-5D284FC970D4} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj new file mode 100644 index 0000000..92bca62 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {9ca682d3-645c-4e24-8539-121f5bea338a} + charter3 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj.filters new file mode 100644 index 0000000..c8ff987 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/charter3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/3.3.obj b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/3.3.obj new file mode 100644 index 0000000..d1c04a2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/3.3.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.exe b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.exe new file mode 100644 index 0000000..2237216 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.iobj b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.iobj new file mode 100644 index 0000000..751ae14 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.ipdb new file mode 100644 index 0000000..69796ea Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.log b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.log new file mode 100644 index 0000000..db5153a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.log @@ -0,0 +1,7 @@ + 3.3.c + 正在生成代码 + 1 of 4 functions (25.0%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + charter3.vcxproj -> E:\allcode\c\primer_c_instance\charter3\x64\Release\charter3.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.pdb b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.pdb new file mode 100644 index 0000000..9b84378 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e9d48df Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2784a17 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..cebf325 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/charter3.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/charter3.lastbuildstate new file mode 100644 index 0000000..f29b16c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/charter3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|x64|E:\allcode\c\primer_c_instance\charter3\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/charter3.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/charter3.write.1u.tlog new file mode 100644 index 0000000..9c2de6d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/charter3.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.command.1.tlog new file mode 100644 index 0000000..5852bee Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.read.1.tlog new file mode 100644 index 0000000..ccbd709 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.write.1.tlog new file mode 100644 index 0000000..4f1c848 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..18b5c11 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/charter3.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\charter3\x64\Release\charter3.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/vc142.pdb new file mode 100644 index 0000000..9100c66 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter3/x64/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/.suo new file mode 100644 index 0000000..f779320 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/Browse.VC.db new file mode 100644 index 0000000..ccab479 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/ipch/AutoPCH/7e2e23c82511e7da/EG5.14.ipch b/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/ipch/AutoPCH/7e2e23c82511e7da/EG5.14.ipch new file mode 100644 index 0000000..1d60a8d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/.vs/chapter5.14/v16/ipch/AutoPCH/7e2e23c82511e7da/EG5.14.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.sln b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.sln new file mode 100644 index 0000000..02fa861 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter5.14", "chapter5.14.vcxproj", "{D2851A6F-8DA4-4A98-8F13-1F931934F893}" +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 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Debug|x64.ActiveCfg = Debug|x64 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Debug|x64.Build.0 = Debug|x64 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Debug|x86.ActiveCfg = Debug|Win32 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Debug|x86.Build.0 = Debug|Win32 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Release|x64.ActiveCfg = Release|x64 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Release|x64.Build.0 = Release|x64 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Release|x86.ActiveCfg = Release|Win32 + {D2851A6F-8DA4-4A98-8F13-1F931934F893}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {ECB9D055-54D6-4308-AC8A-69FFCF26540F} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj new file mode 100644 index 0000000..027c483 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {d2851a6f-8da4-4a98-8f13-1f931934f893} + chapter514 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj.filters new file mode 100644 index 0000000..a9a4f07 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/chapter5.14.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/eg5.14.c b/初试笔记/c_prime_plus习题实现代码/chapter5.14/eg5.14.c new file mode 100644 index 0000000..3318d09 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/eg5.14.c @@ -0,0 +1,24 @@ +#include +int main(void) +{ + char ch; + int i; + float f1; + + f1 = i = ch = 'C'; + printf("ch=%c,i=%d,f1=%2.2f\n", ch, i, f1); + ch = ch + 1; + i = f1 + 2 * ch; + f1 = 2.0 * ch + i; + printf("ch=%c,i=%d,f1=%2.2f\n", ch, i, f1); + ch = 1107; + printf("Now ch=%c\n", ch); + ch = 80.89; + printf("Now ch=%c\n", ch); + i = ch; + printf("Now i=%d\n", i); + (float)i; + printf("Now i=%f", i); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.exe b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.exe new file mode 100644 index 0000000..f1f9af0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.iobj b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.iobj new file mode 100644 index 0000000..549a4f7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.ipdb new file mode 100644 index 0000000..2b5f030 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.log b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.log new file mode 100644 index 0000000..a32e223 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.log @@ -0,0 +1,13 @@ + eg5.14.c +E:\allcode\c\primer_c_instance\chapter5.14\eg5.14.c(8,19): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据 +E:\allcode\c\primer_c_instance\chapter5.14\eg5.14.c(11,17): warning C4244: “=”: 从“float”转换到“int”,可能丢失数据 +E:\allcode\c\primer_c_instance\chapter5.14\eg5.14.c(12,19): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 +E:\allcode\c\primer_c_instance\chapter5.14\eg5.14.c(14,11): warning C4305: “=”: 从“int”到“char”截断 +E:\allcode\c\primer_c_instance\chapter5.14\eg5.14.c(16,12): warning C4244: “=”: 从“double”转换到“char”,可能丢失数据 +E:\allcode\c\primer_c_instance\chapter5.14\eg5.14.c(21,9): warning C4477: “printf”: 格式字符串“%f”需要类型“double”的参数,但可变参数 1 拥有了类型“int” + 正在生成代码 + 1 of 4 functions (25.0%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter5.14.vcxproj -> E:\allcode\c\primer_c_instance\chapter5.14\x64\Release\chapter5.14.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.pdb new file mode 100644 index 0000000..eb9b588 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.command.1.tlog new file mode 100644 index 0000000..915862e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.read.1.tlog new file mode 100644 index 0000000..00d2096 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.write.1.tlog new file mode 100644 index 0000000..7d62df0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/chapter5.14.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/chapter5.14.lastbuildstate new file mode 100644 index 0000000..06a18fa --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/chapter5.14.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|x64|E:\allcode\c\primer_c_instance\chapter5.14\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/chapter5.14.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/chapter5.14.write.1u.tlog new file mode 100644 index 0000000..d62763b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/chapter5.14.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.command.1.tlog new file mode 100644 index 0000000..d0f5da1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.read.1.tlog new file mode 100644 index 0000000..25bfa35 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.write.1.tlog new file mode 100644 index 0000000..7ee1b82 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5c2411a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/chapter5.14.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter5.14\x64\Release\chapter5.14.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/eg5.14.obj b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/eg5.14.obj new file mode 100644 index 0000000..eb390d9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/eg5.14.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/vc142.pdb new file mode 100644 index 0000000..bc872d9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.14/x64/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/.vs/chapter5.16/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter5.16/.vs/chapter5.16/v16/.suo new file mode 100644 index 0000000..50528e0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.16/.vs/chapter5.16/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/.vs/chapter5.16/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter5.16/.vs/chapter5.16/v16/Browse.VC.db new file mode 100644 index 0000000..4e03150 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.16/.vs/chapter5.16/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/Release/chapter5.16.log b/初试笔记/c_prime_plus习题实现代码/chapter5.16/Release/chapter5.16.log new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/Release/chapter5.16.log @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/Release/chapter5.16.tlog/chapter5.16.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter5.16/Release/chapter5.16.tlog/chapter5.16.lastbuildstate new file mode 100644 index 0000000..478e609 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/Release/chapter5.16.tlog/chapter5.16.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter5.16\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.sln b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.sln new file mode 100644 index 0000000..8117e44 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter5.16", "chapter5.16.vcxproj", "{994E72E1-4794-4121-88AB-D4FD88630F74}" +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 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Debug|x64.ActiveCfg = Debug|x64 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Debug|x64.Build.0 = Debug|x64 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Debug|x86.ActiveCfg = Debug|Win32 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Debug|x86.Build.0 = Debug|Win32 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Release|x64.ActiveCfg = Release|x64 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Release|x64.Build.0 = Release|x64 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Release|x86.ActiveCfg = Release|Win32 + {994E72E1-4794-4121-88AB-D4FD88630F74}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A060BAAB-8CAE-4A62-99BC-E52EF2DA23D1} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj new file mode 100644 index 0000000..343ca45 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {994e72e1-4794-4121-88ab-d4fd88630f74} + chapter516 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj.filters new file mode 100644 index 0000000..b1f2b41 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/chapter5.16.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.16/eg5.16 b/初试笔记/c_prime_plus习题实现代码/chapter5.16/eg5.16 new file mode 100644 index 0000000..8b008a6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.16/eg5.16 @@ -0,0 +1,39 @@ +//running.c--A useful program for runners +#include +const int S_PER_M=60; +const int S_PER_H=3600; +const double M_PER_K=0.62137; +int main(void) +{ + double distk,distm; + double rate; + int min,sec; + int time; + double mtime; + int mmin,msec; + + printf("This program converts your time for a metric race\n"); + printf("to a time for running a mile and your average\n"); + printf("speed in miles per hour.\n"); + printf("Please enter,in kilometers,the distance run.\n"); + scanf_s("%1f",&distk); + printf("Next enter the time in minutes and seconds.\n"); + printf("Begin by entering the minutes.\n"); + scanf_s("%d",&min); + printf("Now enter the seconds.\n"); + scanf_s("%d",&sec); + + time=S_PER_M*min+sec; + distm=M_PER_K*distk; + rate=distm/time*S_PER_H; + mtime=(double)time/distm; + mmin=(int)mtime/S_PER_M; + msec=(int)mtime%S_PER_M; + + printf("You ran %1.2f km (%1.2f miles) in %d min,%d sec.\n",distk,distm,min,sec); + printf("That pace corresponds to running a mile in %d min,",mmin); + printf("%d sec.\nYour average speed was %1.2f mph.\n",msec,rate); + + return 0; + +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/.suo new file mode 100644 index 0000000..c98000b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/Browse.VC.db new file mode 100644 index 0000000..262afa4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/ipch/AutoPCH/a1a2aba698c57d3f/EG5.160.ipch b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/ipch/AutoPCH/a1a2aba698c57d3f/EG5.160.ipch new file mode 100644 index 0000000..af20c1b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/ipch/AutoPCH/a1a2aba698c57d3f/EG5.160.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/ipch/AutoPCH/ff78d206d6fa259d/EG5.160.ipch b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/ipch/AutoPCH/ff78d206d6fa259d/EG5.160.ipch new file mode 100644 index 0000000..27c4c88 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/.vs/chapter5.160/v16/ipch/AutoPCH/ff78d206d6fa259d/EG5.160.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.exe b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.exe new file mode 100644 index 0000000..e81a952 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.ilk b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.ilk new file mode 100644 index 0000000..e9a32b8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.log b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.log new file mode 100644 index 0000000..3693c2d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.log @@ -0,0 +1,2 @@ + eg5.160.c + chapter5.160.vcxproj -> E:\allcode\c\primer_c_instance\chapter5.160\Debug\chapter5.160.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.pdb new file mode 100644 index 0000000..ce3f184 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.command.1.tlog new file mode 100644 index 0000000..6db7ac1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.read.1.tlog new file mode 100644 index 0000000..62c7285 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.write.1.tlog new file mode 100644 index 0000000..176a02a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/chapter5.160.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/chapter5.160.lastbuildstate new file mode 100644 index 0000000..9524f48 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/chapter5.160.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter5.160\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.command.1.tlog new file mode 100644 index 0000000..ae77100 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.read.1.tlog new file mode 100644 index 0000000..c26d594 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.write.1.tlog new file mode 100644 index 0000000..7d0963c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..134c6ff --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/chapter5.160.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter5.160\Debug\chapter5.160.exe +E:\allcode\c\primer_c_instance\chapter5.160\Debug\chapter5.160.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/eg5.160.obj b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/eg5.160.obj new file mode 100644 index 0000000..80735f3 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/eg5.160.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/vc142.idb new file mode 100644 index 0000000..e0a8a29 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/vc142.pdb new file mode 100644 index 0000000..a3dca74 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.160/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.sln b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.sln new file mode 100644 index 0000000..a42a6d4 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter5.160", "chapter5.160.vcxproj", "{0117D6AC-C04F-4751-8238-DB73556E2726}" +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 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Debug|x64.ActiveCfg = Debug|x64 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Debug|x64.Build.0 = Debug|x64 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Debug|x86.ActiveCfg = Debug|Win32 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Debug|x86.Build.0 = Debug|Win32 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Release|x64.ActiveCfg = Release|x64 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Release|x64.Build.0 = Release|x64 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Release|x86.ActiveCfg = Release|Win32 + {0117D6AC-C04F-4751-8238-DB73556E2726}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {27E95FDF-C308-4CBE-8A95-489354E6BF01} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj new file mode 100644 index 0000000..1b585ba --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {0117d6ac-c04f-4751-8238-db73556e2726} + chapter5160 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj.filters new file mode 100644 index 0000000..5077299 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/chapter5.160.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.160/eg5.160.c b/初试笔记/c_prime_plus习题实现代码/chapter5.160/eg5.160.c new file mode 100644 index 0000000..71324f6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.160/eg5.160.c @@ -0,0 +1,39 @@ +//running.c--A useful program for runners +#include +const int S_PER_M = 60; +const int S_PER_H = 3600; +const double M_PER_K = 0.62137; +int main(void) +{ + double distk, distm; + double rate; + int min, sec; + int time; + double mtime; + int mmin, msec; + + printf("This program converts your time for a metric race\n"); + printf("to a time for running a mile and your average\n"); + printf("speed in miles per hour.\n"); + printf("Please enter,in kilometers,the distance run.\n"); + scanf_s("%lf", &distk); + printf("Next enter the time in minutes and seconds.\n"); + printf("Begin by entering the minutes.\n"); + scanf_s("%d", &min); + printf("Now enter the seconds.\n"); + scanf_s("%d", &sec); + + time = S_PER_M * min + sec; + distm = M_PER_K * distk; + rate = distm / time * S_PER_H; + mtime = (double)time / distm; + mmin = (int)mtime / S_PER_M; + msec = (int)mtime % S_PER_M; + + printf("You ran %1.2f km (%1.2f miles) in %d min,%d sec.\n", distk, distm, min, sec); + printf("That pace corresponds to running a mile in %d min,", mmin); + printf("%d sec.\nYour average speed was %1.2f mph.\n", msec, rate); + + return 0; + +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/.suo new file mode 100644 index 0000000..993b1a2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/Browse.VC.db new file mode 100644 index 0000000..0dcd85e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/ipch/AutoPCH/486ecb29ce4899df/EG5.9.ipch b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/ipch/AutoPCH/486ecb29ce4899df/EG5.9.ipch new file mode 100644 index 0000000..7a44592 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/ipch/AutoPCH/486ecb29ce4899df/EG5.9.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/ipch/AutoPCH/5ba3fbdb217605f2/EG5.9.ipch b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/ipch/AutoPCH/5ba3fbdb217605f2/EG5.9.ipch new file mode 100644 index 0000000..8304f10 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/.vs/chapter5.9/v16/ipch/AutoPCH/5ba3fbdb217605f2/EG5.9.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.exe b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.exe new file mode 100644 index 0000000..2fb8a11 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.iobj b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.iobj new file mode 100644 index 0000000..752a129 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.ipdb new file mode 100644 index 0000000..132100c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.log b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.log new file mode 100644 index 0000000..3719c4a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.log @@ -0,0 +1,7 @@ + eg5.9.c + 正在生成代码 + 1 of 7 functions (14.3%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter5.9.vcxproj -> E:\allcode\c\primer_c_instance\chapter5.9\Release\chapter5.9.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.pdb new file mode 100644 index 0000000..8d9045a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.command.1.tlog new file mode 100644 index 0000000..fc96ebe Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.read.1.tlog new file mode 100644 index 0000000..9efdfee Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.write.1.tlog new file mode 100644 index 0000000..a75bbe9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/chapter5.9.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/chapter5.9.lastbuildstate new file mode 100644 index 0000000..db0779e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/chapter5.9.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter5.9\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/chapter5.9.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/chapter5.9.write.1u.tlog new file mode 100644 index 0000000..90a4b0d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/chapter5.9.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.command.1.tlog new file mode 100644 index 0000000..880da9a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.read.1.tlog new file mode 100644 index 0000000..5e4fbcc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.write.1.tlog new file mode 100644 index 0000000..892b1ee Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5692847 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/chapter5.9.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter5.9\Release\chapter5.9.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/eg5.9.obj b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/eg5.9.obj new file mode 100644 index 0000000..c41b7fe Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/eg5.9.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/vc142.pdb new file mode 100644 index 0000000..1daaed9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.sln b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.sln new file mode 100644 index 0000000..bdf9d9a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter5.9", "chapter5.9.vcxproj", "{F43F6041-61AE-4570-869F-F11F53C73249}" +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 + {F43F6041-61AE-4570-869F-F11F53C73249}.Debug|x64.ActiveCfg = Debug|x64 + {F43F6041-61AE-4570-869F-F11F53C73249}.Debug|x64.Build.0 = Debug|x64 + {F43F6041-61AE-4570-869F-F11F53C73249}.Debug|x86.ActiveCfg = Debug|Win32 + {F43F6041-61AE-4570-869F-F11F53C73249}.Debug|x86.Build.0 = Debug|Win32 + {F43F6041-61AE-4570-869F-F11F53C73249}.Release|x64.ActiveCfg = Release|x64 + {F43F6041-61AE-4570-869F-F11F53C73249}.Release|x64.Build.0 = Release|x64 + {F43F6041-61AE-4570-869F-F11F53C73249}.Release|x86.ActiveCfg = Release|Win32 + {F43F6041-61AE-4570-869F-F11F53C73249}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {94B6E0D8-CD8C-4FF3-9E80-A85B3EA02B6D} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj new file mode 100644 index 0000000..f62b20b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {f43f6041-61ae-4570-869f-f11f53c73249} + chapter59 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj.filters new file mode 100644 index 0000000..b0de669 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/chapter5.9.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/eg5.9.c b/初试笔记/c_prime_plus习题实现代码/chapter5.9/eg5.9.c new file mode 100644 index 0000000..55dca17 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/eg5.9.c @@ -0,0 +1,23 @@ +#include +#define SEC_PER_MIN 60 +int main(void) +{ + int sec, min, left; + + printf("Convert seconds to minutes and seconds!\n"); + printf("Enter the number of seconds(<=0 to quit):\n"); + scanf_s("%d", & sec); + while (sec > 0) + { + min = sec / SEC_PER_MIN; + left = sec % SEC_PER_MIN; + printf("%d seconds is %d minutes,%d seconds.\n", sec, min, left); + printf("Enter next value(<=0 to quit):\n"); + scanf_s("%d", &sec); + + } + printf("Done!"); + + return 0; + +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.exe b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.exe new file mode 100644 index 0000000..2ec16c6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.ilk b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.ilk new file mode 100644 index 0000000..d943d55 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.log b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.log new file mode 100644 index 0000000..e6d26ab --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.log @@ -0,0 +1,2 @@ + eg5.9.c + chapter5.9.vcxproj -> E:\allcode\c\primer_c_instance\chapter5.9\x64\Debug\chapter5.9.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.pdb new file mode 100644 index 0000000..7bd530c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.command.1.tlog new file mode 100644 index 0000000..fc0cbd7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.read.1.tlog new file mode 100644 index 0000000..9652729 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.write.1.tlog new file mode 100644 index 0000000..1e87333 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/chapter5.9.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/chapter5.9.lastbuildstate new file mode 100644 index 0000000..b446363 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/chapter5.9.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|x64|E:\allcode\c\primer_c_instance\chapter5.9\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.command.1.tlog new file mode 100644 index 0000000..9a5f911 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.read.1.tlog new file mode 100644 index 0000000..b4ac7ef Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.write.1.tlog new file mode 100644 index 0000000..c1850e7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..7e02463 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/chapter5.9.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter5.9\x64\Debug\chapter5.9.exe +E:\allcode\c\primer_c_instance\chapter5.9\x64\Debug\chapter5.9.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/eg5.9.obj b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/eg5.9.obj new file mode 100644 index 0000000..5152453 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/eg5.9.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/vc142.idb new file mode 100644 index 0000000..5ee3497 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/vc142.pdb new file mode 100644 index 0000000..181d65f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5.9/x64/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/.suo new file mode 100644 index 0000000..2f58229 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/Browse.VC.db new file mode 100644 index 0000000..12ef675 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/ipch/AutoPCH/1e8b5b3781809ce4/EG5.8.ipch b/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/ipch/AutoPCH/1e8b5b3781809ce4/EG5.8.ipch new file mode 100644 index 0000000..5802df5 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/.vs/chapter5/v16/ipch/AutoPCH/1e8b5b3781809ce4/EG5.8.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.sln b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.sln new file mode 100644 index 0000000..1e3e940 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter5", "chapter5.vcxproj", "{93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}" +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 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Debug|x64.ActiveCfg = Debug|x64 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Debug|x64.Build.0 = Debug|x64 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Debug|x86.ActiveCfg = Debug|Win32 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Debug|x86.Build.0 = Debug|Win32 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Release|x64.ActiveCfg = Release|x64 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Release|x64.Build.0 = Release|x64 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Release|x86.ActiveCfg = Release|Win32 + {93AA9ED8-E90C-4EBF-AF61-23904A33F1AD}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {599626CA-B9AE-4AEC-B0F1-7BA3FAC5056E} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj new file mode 100644 index 0000000..df84c91 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + 16.0 + Win32Proj + {93aa9ed8-e90c-4ebf-af61-23904a33f1ad} + chapter5 + 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 + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj.filters new file mode 100644 index 0000000..21726e0 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/chapter5.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/eg5.8.c b/初试笔记/c_prime_plus习题实现代码/chapter5/eg5.8.c new file mode 100644 index 0000000..746a296 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/eg5.8.c @@ -0,0 +1,11 @@ +#include +int main(void) +{ + int n = 0; + size_t intsize; + + intsize = sizeof(int); + printf("n=%d,n has %zd bytes;all ints have %zd bytes.\n", n, sizeof n, intsize); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.exe b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.exe new file mode 100644 index 0000000..f5734e9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.iobj b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.iobj new file mode 100644 index 0000000..2478c8a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.ipdb new file mode 100644 index 0000000..169e682 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.log b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.log new file mode 100644 index 0000000..fb5f3ef --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.log @@ -0,0 +1,6 @@ + eg5.8.c + 正在生成代码 + Previous IPDB not found, fall back to full compilation. + All 4 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. + 已完成代码的生成 + chapter5.vcxproj -> E:\allcode\c\primer_c_instance\chapter5\x64\Release\chapter5.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.pdb new file mode 100644 index 0000000..1d4a6b1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.command.1.tlog new file mode 100644 index 0000000..a776469 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ac59c3d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..1493305 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/chapter5.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/chapter5.lastbuildstate new file mode 100644 index 0000000..52008e2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/chapter5.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|x64|E:\allcode\c\primer_c_instance\chapter5\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/chapter5.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/chapter5.write.1u.tlog new file mode 100644 index 0000000..366a522 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/chapter5.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.command.1.tlog new file mode 100644 index 0000000..7bde7d6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.read.1.tlog new file mode 100644 index 0000000..d586130 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.write.1.tlog new file mode 100644 index 0000000..9a25dd6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..59b5954 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/chapter5.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter5\x64\Release\chapter5.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/eg5.8.obj b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/eg5.8.obj new file mode 100644 index 0000000..d8962e6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/eg5.8.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/vc142.pdb new file mode 100644 index 0000000..43e01d1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter5/x64/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/.suo new file mode 100644 index 0000000..42dae91 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/Browse.VC.db new file mode 100644 index 0000000..7b06a7f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/ipch/AutoPCH/50c693e42d599255/EG6.5.ipch b/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/ipch/AutoPCH/50c693e42d599255/EG6.5.ipch new file mode 100644 index 0000000..24f3677 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/.vs/chapter6.5/v16/ipch/AutoPCH/50c693e42d599255/EG6.5.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.exe b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.exe new file mode 100644 index 0000000..990c24a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.iobj b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.iobj new file mode 100644 index 0000000..44fd7dd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.ipdb new file mode 100644 index 0000000..f01a4a2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.log b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.log new file mode 100644 index 0000000..7f9bfda --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.log @@ -0,0 +1,8 @@ + eg6.5.c +E:\allcode\c\primer_c_instance\chapter6.5\eg6.5.c(9,10): warning C4477: “scanf_s”: 格式字符串“%1f”需要类型“float *”的参数,但可变参数 1 拥有了类型“double *” +E:\allcode\c\primer_c_instance\chapter6.5\eg6.5.c(9,10): message : 请考虑在格式字符串中使用“%lf” + 正在生成代码 + Previous IPDB not found, fall back to full compilation. + All 7 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. + 已完成代码的生成 + chapter6.5.vcxproj -> E:\allcode\c\primer_c_instance\chapter6.5\Release\chapter6.5.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.pdb b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.pdb new file mode 100644 index 0000000..1a9b90e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.command.1.tlog new file mode 100644 index 0000000..9003854 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..0a09d79 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..37793d6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/chapter6.5.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/chapter6.5.lastbuildstate new file mode 100644 index 0000000..6666813 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/chapter6.5.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter6.5\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/chapter6.5.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/chapter6.5.write.1u.tlog new file mode 100644 index 0000000..8420835 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/chapter6.5.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.command.1.tlog new file mode 100644 index 0000000..9d7cd9f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.read.1.tlog new file mode 100644 index 0000000..902024c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.write.1.tlog new file mode 100644 index 0000000..635d1af Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..0a37cdb --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/chapter6.5.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter6.5\Release\chapter6.5.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/eg6.5.obj b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/eg6.5.obj new file mode 100644 index 0000000..f0523a2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/eg6.5.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/vc142.pdb new file mode 100644 index 0000000..6d110cb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter6.5/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.sln b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.sln new file mode 100644 index 0000000..afae3e2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter6.5", "chapter6.5.vcxproj", "{14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}" +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 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Debug|x64.ActiveCfg = Debug|x64 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Debug|x64.Build.0 = Debug|x64 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Debug|x86.ActiveCfg = Debug|Win32 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Debug|x86.Build.0 = Debug|Win32 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Release|x64.ActiveCfg = Release|x64 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Release|x64.Build.0 = Release|x64 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Release|x86.ActiveCfg = Release|Win32 + {14FF7707-2CAF-41CB-AD1D-A803FB9DAEAD}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9B7EAFD9-E40A-4BFB-83A3-A0C24C65C3EA} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj new file mode 100644 index 0000000..a31b401 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {14ff7707-2caf-41cb-ad1d-a803fb9daead} + chapter65 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj.filters new file mode 100644 index 0000000..1b4c047 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/chapter6.5.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter6.5/eg6.5.c b/初试笔记/c_prime_plus习题实现代码/chapter6.5/eg6.5.c new file mode 100644 index 0000000..f959307 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter6.5/eg6.5.c @@ -0,0 +1,18 @@ +#include +#include +int main(void) +{ + const double ANSWER = 3.14159; + double response; + + printf("What is the value of pi?\n"); + scanf_s("%1f", &response); + while (fabs(response - ANSWER) > 0.0001) + { + printf("Try again!\n"); + scanf_s("%lf", &response); + } + printf("Close enough!\n"); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/.suo new file mode 100644 index 0000000..4c9b045 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/Browse.VC.db new file mode 100644 index 0000000..c216402 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/ipch/AutoPCH/42ae9392c0ee1075/EG7.2.ipch b/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/ipch/AutoPCH/42ae9392c0ee1075/EG7.2.ipch new file mode 100644 index 0000000..d70d480 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/.vs/chapter7.2/v16/ipch/AutoPCH/42ae9392c0ee1075/EG7.2.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.exe b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.exe new file mode 100644 index 0000000..3671572 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.iobj b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.iobj new file mode 100644 index 0000000..2f4efda Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.ipdb new file mode 100644 index 0000000..f727e11 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.log b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.log new file mode 100644 index 0000000..e6417c2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.log @@ -0,0 +1,6 @@ + 正在生成代码 + 1 of 1 functions (100.0%) were compiled. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter7.2.vcxproj -> E:\allcode\c\primer_c_instance\chapter7.2\Release\chapter7.2.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.pdb b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.pdb new file mode 100644 index 0000000..50627d9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.command.1.tlog new file mode 100644 index 0000000..1ed3d36 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..67e465f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..36fc2aa Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/chapter7.2.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/chapter7.2.lastbuildstate new file mode 100644 index 0000000..aedd8f3 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/chapter7.2.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter7.2\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/chapter7.2.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/chapter7.2.write.1u.tlog new file mode 100644 index 0000000..07d1629 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/chapter7.2.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.command.1.tlog new file mode 100644 index 0000000..c4cffea Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.read.1.tlog new file mode 100644 index 0000000..b56a042 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.write.1.tlog new file mode 100644 index 0000000..7fc8460 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..673a7d7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/chapter7.2.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter7.2\Release\chapter7.2.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/eg7.2.obj b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/eg7.2.obj new file mode 100644 index 0000000..661f838 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/eg7.2.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/vc142.pdb new file mode 100644 index 0000000..2838c35 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.2/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.sln b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.sln new file mode 100644 index 0000000..bf26555 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter7.2", "chapter7.2.vcxproj", "{1604C815-57D6-4DCE-9DD7-24C6D668DD2B}" +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 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Debug|x64.ActiveCfg = Debug|x64 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Debug|x64.Build.0 = Debug|x64 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Debug|x86.ActiveCfg = Debug|Win32 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Debug|x86.Build.0 = Debug|Win32 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Release|x64.ActiveCfg = Release|x64 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Release|x64.Build.0 = Release|x64 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Release|x86.ActiveCfg = Release|Win32 + {1604C815-57D6-4DCE-9DD7-24C6D668DD2B}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C4872A5E-81B0-4C8F-AB64-9304DDE89112} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj new file mode 100644 index 0000000..fa371ae --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {1604c815-57d6-4dce-9dd7-24c6d668dd2b} + chapter72 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj.filters new file mode 100644 index 0000000..725b725 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/chapter7.2.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.2/eg7.2.c b/初试笔记/c_prime_plus习题实现代码/chapter7.2/eg7.2.c new file mode 100644 index 0000000..3abb112 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.2/eg7.2.c @@ -0,0 +1,20 @@ +//cypher1.c --룬ո񲻱 +#include +#define SPACE ' ' +int main(void) +{ + char ch; + + ch = getchar(); + while ((ch = getchar()) != '\n') + { + if (ch == SPACE) + putchar(ch); + else + putchar(ch + 1); + + } + putchar(ch); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/.suo new file mode 100644 index 0000000..f484732 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/Browse.VC.db new file mode 100644 index 0000000..ab2a82d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/ipch/AutoPCH/e833ad93ab74c45b/EG7.5.ipch b/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/ipch/AutoPCH/e833ad93ab74c45b/EG7.5.ipch new file mode 100644 index 0000000..2ca2c8c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/.vs/chapter7.5/v16/ipch/AutoPCH/e833ad93ab74c45b/EG7.5.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.exe b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.exe new file mode 100644 index 0000000..781beb1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.iobj b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.iobj new file mode 100644 index 0000000..180b838 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.ipdb b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.ipdb new file mode 100644 index 0000000..40e2301 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.log b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.log new file mode 100644 index 0000000..467c402 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.log @@ -0,0 +1,6 @@ + eg7.5.c + 正在生成代码 + Previous IPDB not found, fall back to full compilation. + All 7 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. + 已完成代码的生成 + chapter7.5.vcxproj -> E:\allcode\c\primer_c_instance\chapter7.5\Release\chapter7.5.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.pdb b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.pdb new file mode 100644 index 0000000..12e36b1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.command.1.tlog new file mode 100644 index 0000000..ca839d3 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ef03497 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..dd70100 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/chapter7.5.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/chapter7.5.lastbuildstate new file mode 100644 index 0000000..e3bf0fb --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/chapter7.5.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter7.5\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/chapter7.5.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/chapter7.5.write.1u.tlog new file mode 100644 index 0000000..eae8e0f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/chapter7.5.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.command.1.tlog new file mode 100644 index 0000000..290dd0a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.read.1.tlog new file mode 100644 index 0000000..5e4ae4c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.write.1.tlog new file mode 100644 index 0000000..51824eb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..e7a2325 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/chapter7.5.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter7.5\Release\chapter7.5.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/eg7.5.obj b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/eg7.5.obj new file mode 100644 index 0000000..3696aeb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/eg7.5.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/vc142.pdb new file mode 100644 index 0000000..87f2f71 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter7.5/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.sln b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.sln new file mode 100644 index 0000000..8787937 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter7.5", "chapter7.5.vcxproj", "{FEB903F1-94F0-430F-BB0B-5F822076A64F}" +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 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Debug|x64.ActiveCfg = Debug|x64 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Debug|x64.Build.0 = Debug|x64 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Debug|x86.ActiveCfg = Debug|Win32 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Debug|x86.Build.0 = Debug|Win32 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Release|x64.ActiveCfg = Release|x64 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Release|x64.Build.0 = Release|x64 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Release|x86.ActiveCfg = Release|Win32 + {FEB903F1-94F0-430F-BB0B-5F822076A64F}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {66CB44B2-4C71-4A78-BF86-22685B462D30} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj new file mode 100644 index 0000000..688bb4e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {feb903f1-94f0-430f-bb0b-5f822076a64f} + chapter75 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj.filters new file mode 100644 index 0000000..eaa38e5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/chapter7.5.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter7.5/eg7.5.c b/初试笔记/c_prime_plus习题实现代码/chapter7.5/eg7.5.c new file mode 100644 index 0000000..599ed9b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter7.5/eg7.5.c @@ -0,0 +1,34 @@ +//dicisors.c --ʹǶifʾһԼ +#include +#include +int main(void) +{ + unsigned long num; + unsigned long div; + bool isPrime; + + printf("Please enter an integer for analysis;"); + printf("Enter q to quit.\n"); + while(scanf_s("%lu",&num)==1) + { + for (div = 2, isPrime = true; (div * div) <= num; div++) + { + if (num % div == 0) + { + if ((div * div) != num) + printf("%lu is divisible by %lu and %lu.\n", num, div, num / div); + else + printf("%lu is divisible by %lu.\n",num,div); + isPrime = false; + } + } + if (isPrime) + printf("%lu is prime.\n", num); + printf("Please enter another interger for analysis;"); + printf("Enter q to quit.\n"); + } + printf("Bye.\n"); + + return 0; + +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/.suo new file mode 100644 index 0000000..483d652 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/Browse.VC.db new file mode 100644 index 0000000..204b6f4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/ipch/AutoPCH/f508a500df7fd413/EG9.8.ipch b/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/ipch/AutoPCH/f508a500df7fd413/EG9.8.ipch new file mode 100644 index 0000000..847af48 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.8/.vs/chapter9.8/v16/ipch/AutoPCH/f508a500df7fd413/EG9.8.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.Build.CppClean.log b/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.Build.CppClean.log new file mode 100644 index 0000000..82f96ee --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\allcode\c\primer_c_instance\chapter9.8\debug\vc142.pdb +e:\allcode\c\primer_c_instance\chapter9.8\debug\vc142.idb +e:\allcode\c\primer_c_instance\chapter9.8\debug\eg9.8.obj +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.exe +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.ilk +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.pdb +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.tlog\cl.command.1.tlog +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.tlog\cl.read.1.tlog +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.tlog\cl.write.1.tlog +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.tlog\link.command.1.tlog +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.tlog\link.read.1.tlog +e:\allcode\c\primer_c_instance\chapter9.8\debug\chapter9.8.tlog\link.write.1.tlog diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.log b/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.log new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.log @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter9.8/Debug/chapter9.8.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.sln b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.sln new file mode 100644 index 0000000..9c67618 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter9.8", "chapter9.8.vcxproj", "{B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}" +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 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Debug|x64.ActiveCfg = Debug|x64 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Debug|x64.Build.0 = Debug|x64 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Debug|x86.ActiveCfg = Debug|Win32 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Debug|x86.Build.0 = Debug|Win32 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Release|x64.ActiveCfg = Release|x64 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Release|x64.Build.0 = Release|x64 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Release|x86.ActiveCfg = Release|Win32 + {B6F76FD2-8A4D-4014-AD0A-2F4106A620F4}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E344CC94-543E-46F1-830B-BCCB30785C64} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj new file mode 100644 index 0000000..239a599 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b6f76fd2-8a4d-4014-ad0a-2f4106a620f4} + chapter98 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj.filters new file mode 100644 index 0000000..8c39e79 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/chapter9.8.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.8/eg9.8.c b/初试笔记/c_prime_plus习题实现代码/chapter9.8/eg9.8.c new file mode 100644 index 0000000..5c89514 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.8/eg9.8.c @@ -0,0 +1,31 @@ +//ʮת ݹʵ +#include +void to_binary(unsigned long n); + +int main(void) +{ + unsigned long number; + printf("Enter an interger (q to quit):\n"); + while (scanf_s("%lu", &number) == 1) + { + printf("Binary equivalent:"); + to_binary(number); + putchar('\n'); + printf("Enter an interger (q to quit):\n"); + } + printf("Done.\n"); + + return 0; +} + +void to_binary(unsigned long n) +{ + int r; + + r = n % 2; + if (n >=2) + to_binary(n / 2); + putchar(r == 0 ? '0' : '1'); + + return; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/.suo b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/.suo new file mode 100644 index 0000000..0800ccd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/Browse.VC.db new file mode 100644 index 0000000..ae63f7e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/ipch/AutoPCH/a0413e72fc9dfb75/HOTEL.ipch b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/ipch/AutoPCH/a0413e72fc9dfb75/HOTEL.ipch new file mode 100644 index 0000000..d0b794b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/ipch/AutoPCH/a0413e72fc9dfb75/HOTEL.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/ipch/AutoPCH/d5c4523c59eac3f5/EG9.9.ipch b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/ipch/AutoPCH/d5c4523c59eac3f5/EG9.9.ipch new file mode 100644 index 0000000..58c2157 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/.vs/chapter9.9/v16/ipch/AutoPCH/d5c4523c59eac3f5/EG9.9.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.exe b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.exe new file mode 100644 index 0000000..26bbe6c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.ilk b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.ilk new file mode 100644 index 0000000..5ccbc52 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.log b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.log new file mode 100644 index 0000000..a9b90da --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.log @@ -0,0 +1,2 @@ + hotel.c + chapter9.9.vcxproj -> E:\allcode\c\primer_c_instance\chapter9.9\Debug\chapter9.9.exe diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.pdb b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.pdb new file mode 100644 index 0000000..f6f0592 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.command.1.tlog new file mode 100644 index 0000000..9badd46 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.read.1.tlog new file mode 100644 index 0000000..0ac1a67 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8f9d611 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/chapter9.9.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/chapter9.9.lastbuildstate new file mode 100644 index 0000000..c44bbb7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/chapter9.9.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter9.9\| diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.command.1.tlog new file mode 100644 index 0000000..6d30b6c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.read.1.tlog new file mode 100644 index 0000000..625a06c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.write.1.tlog new file mode 100644 index 0000000..580ff5a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b32485d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/chapter9.9.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter9.9\Debug\chapter9.9.exe +E:\allcode\c\primer_c_instance\chapter9.9\Debug\chapter9.9.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/eg9.9.obj b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/eg9.9.obj new file mode 100644 index 0000000..9a9ea77 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/eg9.9.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/hotel.obj b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/hotel.obj new file mode 100644 index 0000000..2ff222a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/hotel.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/vc142.idb new file mode 100644 index 0000000..1ae9f41 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/vc142.pdb new file mode 100644 index 0000000..891593a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/chapter9.9/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.sln b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.sln new file mode 100644 index 0000000..c33dd99 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter9.9", "chapter9.9.vcxproj", "{388E6AC0-144E-4465-A929-5234200A018A}" +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 + {388E6AC0-144E-4465-A929-5234200A018A}.Debug|x64.ActiveCfg = Debug|x64 + {388E6AC0-144E-4465-A929-5234200A018A}.Debug|x64.Build.0 = Debug|x64 + {388E6AC0-144E-4465-A929-5234200A018A}.Debug|x86.ActiveCfg = Debug|Win32 + {388E6AC0-144E-4465-A929-5234200A018A}.Debug|x86.Build.0 = Debug|Win32 + {388E6AC0-144E-4465-A929-5234200A018A}.Release|x64.ActiveCfg = Release|x64 + {388E6AC0-144E-4465-A929-5234200A018A}.Release|x64.Build.0 = Release|x64 + {388E6AC0-144E-4465-A929-5234200A018A}.Release|x86.ActiveCfg = Release|Win32 + {388E6AC0-144E-4465-A929-5234200A018A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FE457795-1E4F-4D3E-B7C4-2D042496C6F1} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj new file mode 100644 index 0000000..2e1615e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj @@ -0,0 +1,151 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {388e6ac0-144e-4465-a929-5234200a018a} + chapter99 + 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 + + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj.filters new file mode 100644 index 0000000..f7825d7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/chapter9.9.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/eg9.9.c b/初试笔记/c_prime_plus习题实现代码/chapter9.9/eg9.9.c new file mode 100644 index 0000000..2c0b799 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/eg9.9.c @@ -0,0 +1,31 @@ +#include +#include "hotel.h" //ų + +int main(void) +{ + int nights; + double hotel_rate; + int code; + + while ((code = menu()) != QUIT) + { + switch (code) + { + case 1: hotel_rate = HOTEL1; + break; + case 2: hotel_rate = HOTEL2; + break; + case 3: hotel_rate = HOTEL3; + break; + case 4: hotel_rate = HOTEL4; + break; + default: hotel_rate = 0.0; + printf("Oops!\n"); + break; + } + nights = getnights(); + showprice(hotel_rate, nights); + } + printf("Thank you and goodbye.\n"); + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/hotel.c b/初试笔记/c_prime_plus习题实现代码/chapter9.9/hotel.c new file mode 100644 index 0000000..a09978e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/hotel.c @@ -0,0 +1,45 @@ +#include +#include "hotel.h" +int menu(void) +{ + int code, status; + + printf("\n%s%s\n", STARS, STARS); + printf("Enter the number of the desired hotel:\n"); + printf("1) Fairfield Arms 2) Hotel Olympic\n"); + printf("3) Chertworthy Plaza 4) The Stockton\n"); + printf("5) quit\n"); + printf("%s%s\n", STARS, STARS); + while ((status = scanf_s("%d", &code)) != 1 || (code < 1 || code>5)) + { + if (status != 1) + scanf_s("%*s"); + printf("Enter an interger from 1 to 5,please.\n"); + } + return code; +} + +int getnights(void) +{ + int nights; + + printf("How many nights are needes?"); + while (scanf_s("%d", &nights) != 1) + { + scanf_s("%*s"); + printf("Please enter an integer,such as 2.\n"); + } + + return nights; +} + +void showprice(double rate, int nights) +{ + int n; + double total = 0.0; + double factor = 1.0; + + for (n = 1; n <=nights; n++, factor *= DISCOUNT) + total += rate * factor; + printf("The total cost will be $%0.2f.\n", total); +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/chapter9.9/hotel.h b/初试笔记/c_prime_plus习题实现代码/chapter9.9/hotel.h new file mode 100644 index 0000000..79cc61d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/chapter9.9/hotel.h @@ -0,0 +1,13 @@ +#define QUIT 5 +#define HOTEL1 180.00 +#define HOTEL2 225.00 +#define HOTEL3 255.00 +#define HOTEL4 355.00 +#define DISCOUNT 0.95 +#define STARS "*****************" + +int menu(void); + +int getnights(void); + +void showprice(double rate, int nights); \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/.suo new file mode 100644 index 0000000..bd43b84 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/Browse.VC.db new file mode 100644 index 0000000..aa6535e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/1b0964734cfdb9a5/HEADFILE.ipch b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/1b0964734cfdb9a5/HEADFILE.ipch new file mode 100644 index 0000000..f50bda8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/1b0964734cfdb9a5/HEADFILE.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/1b0969734cfdc224/HEADFILE.ipch b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/1b0969734cfdc224/HEADFILE.ipch new file mode 100644 index 0000000..f7a91bc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/1b0969734cfdc224/HEADFILE.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/4490c4ec60b61c88/EG3.ipch b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/4490c4ec60b61c88/EG3.ipch new file mode 100644 index 0000000..4574bfb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/4490c4ec60b61c88/EG3.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/86fdc2888ae808d1/EG3.ipch b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/86fdc2888ae808d1/EG3.ipch new file mode 100644 index 0000000..5b04a97 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/86fdc2888ae808d1/EG3.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/9da04b2b2309c939/FUNCTION.ipch b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/9da04b2b2309c939/FUNCTION.ipch new file mode 100644 index 0000000..15ea696 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/9da04b2b2309c939/FUNCTION.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/f3f5a394d8d2e529/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/f3f5a394d8d2e529/EG.ipch new file mode 100644 index 0000000..1b6452b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/.vs/practice10.13/v16/ipch/AutoPCH/f3f5a394d8d2e529/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/eg.c b/初试笔记/c_prime_plus习题实现代码/practice10.13/eg.c new file mode 100644 index 0000000..a9faae6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/eg.c @@ -0,0 +1,18 @@ +#include "headfile.h" + +int main(void) +{ + int num[3]; + eg3(num); + + return 0; +} +int get_length(void) +{ + int size; + + printf("What the length do you want?\n"); + scanf_s("%d", &size); + + return size; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/eg3.c b/初试笔记/c_prime_plus习题实现代码/practice10.13/eg3.c new file mode 100644 index 0000000..860374a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/eg3.c @@ -0,0 +1,47 @@ +#include "headfile.h" +#define SIZE 3 +int get_length(void); +int max(int *num); +int* creat_testnum(int size,int num); +int eg3(int num[]); + +int max(int num[]) +{ + printf("%d\n", *num); + + int *n = &num[0]; + int max = -1000; + for (int i = 0; i < SIZE; i++) + { + if (*(n + i) > max) + max = *(++n); + /*if (num[i] > max) + max = num[i];*/ + } + return max; +} +int* creat_testnum(int size,int num[SIZE]) +{ + int temp; + + for (int i = 0; i < SIZE; i++) + { + printf("Please input the %d number to the num.\n",i+1); + scanf_s("%d", &temp); + num[i] = temp; + //scanf_s("%d",&num[i]); //ȼ + } + return num; +} +int eg3(int num[]) +{ + //int size = get_length(); + + creat_testnum(SIZE,num); + //printf("%d\n", *(num+1)); + //printf("%d\n", *(num+1)); + int m = max(num); + printf("The biggest number is %d.\n", m); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/function.c b/初试笔记/c_prime_plus习题实现代码/practice10.13/function.c new file mode 100644 index 0000000..a762563 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/function.c @@ -0,0 +1,2 @@ +#include "headfile.h" + diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/headfile.h b/初试笔记/c_prime_plus习题实现代码/practice10.13/headfile.h new file mode 100644 index 0000000..15af327 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/headfile.h @@ -0,0 +1,3 @@ +#include + + diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.sln b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.sln new file mode 100644 index 0000000..15f0415 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "practice10.13", "practice10.13.vcxproj", "{E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}" +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 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Debug|x64.ActiveCfg = Debug|x64 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Debug|x64.Build.0 = Debug|x64 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Debug|x86.ActiveCfg = Debug|Win32 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Debug|x86.Build.0 = Debug|Win32 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Release|x64.ActiveCfg = Release|x64 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Release|x64.Build.0 = Release|x64 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Release|x86.ActiveCfg = Release|Win32 + {E4F517B9-83C1-49FE-B222-DC5BD7CA9C30}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6F6565CF-5864-4D3C-86BB-55884FF728D3} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj new file mode 100644 index 0000000..3e04c96 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj @@ -0,0 +1,152 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {e4f517b9-83c1-49fe-b222-dc5bd7ca9c30} + practice1013 + 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 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj.filters new file mode 100644 index 0000000..f51d22c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj.filters @@ -0,0 +1,33 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/practice10.13.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/eg.obj new file mode 100644 index 0000000..6b0d744 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/eg3.obj b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/eg3.obj new file mode 100644 index 0000000..104e893 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/eg3.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/function.obj b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/function.obj new file mode 100644 index 0000000..a2ec6d8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/function.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.exe b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.exe new file mode 100644 index 0000000..8a98398 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.ilk b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.ilk new file mode 100644 index 0000000..59f9f35 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.log b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.log new file mode 100644 index 0000000..4f52d8b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.log @@ -0,0 +1,3 @@ + eg3.c +E:\allcode\c\primer_c_instance\practice10.13\eg3.c(21,33): warning C4028: 形参 2 与声明不同 + practice10.13.vcxproj -> E:\allcode\c\primer_c_instance\practice10.13\x64\Debug\practice10.13.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.pdb b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.pdb new file mode 100644 index 0000000..19f1a64 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d9d0290 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8a222be Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.write.1.tlog new file mode 100644 index 0000000..cb740f4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.command.1.tlog new file mode 100644 index 0000000..5553ac9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.read.1.tlog new file mode 100644 index 0000000..009e9a8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.write.1.tlog new file mode 100644 index 0000000..c542500 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/practice10.13.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/practice10.13.lastbuildstate new file mode 100644 index 0000000..4fd44ba --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.tlog/practice10.13.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|x64|E:\allcode\c\primer_c_instance\practice10.13\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..2a2eb26 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/practice10.13.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\practice10.13\x64\Debug\practice10.13.exe +E:\allcode\c\primer_c_instance\practice10.13\x64\Debug\practice10.13.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/vc142.idb new file mode 100644 index 0000000..bc0f911 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/vc142.pdb new file mode 100644 index 0000000..ef34c7d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice10.13/x64/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/.suo new file mode 100644 index 0000000..5180a01 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/Browse.VC.db new file mode 100644 index 0000000..674077c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/ipch/AutoPCH/35511b04ff4b781d/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/ipch/AutoPCH/35511b04ff4b781d/EG.ipch new file mode 100644 index 0000000..6899930 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/.vs/practice11.13/v16/ipch/AutoPCH/35511b04ff4b781d/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/eg.obj new file mode 100644 index 0000000..f76c751 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.exe b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.exe new file mode 100644 index 0000000..f1c9b4e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.ilk b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.ilk new file mode 100644 index 0000000..5a4fbca Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.log b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.log new file mode 100644 index 0000000..83bdcb5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.log @@ -0,0 +1,2 @@ + eg.c + practice11.13.vcxproj -> E:\allcode\c\primer_c_instance\practice11.13\Debug\practice11.13.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.pdb b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.pdb new file mode 100644 index 0000000..5152513 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e621cbf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.read.1.tlog new file mode 100644 index 0000000..691c10a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.write.1.tlog new file mode 100644 index 0000000..c009896 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.command.1.tlog new file mode 100644 index 0000000..34bb22b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.read.1.tlog new file mode 100644 index 0000000..4ac5567 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.write.1.tlog new file mode 100644 index 0000000..adec6a9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/practice11.13.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/practice11.13.lastbuildstate new file mode 100644 index 0000000..6909b30 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.tlog/practice11.13.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\practice11.13\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..0d3322a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/practice11.13.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\practice11.13\Debug\practice11.13.exe +E:\allcode\c\primer_c_instance\practice11.13\Debug\practice11.13.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/vc142.idb new file mode 100644 index 0000000..7c6f335 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/vc142.pdb new file mode 100644 index 0000000..b13ae1d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice11.13/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/eg.c b/初试笔记/c_prime_plus习题实现代码/practice11.13/eg.c new file mode 100644 index 0000000..9e3a6be --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/eg.c @@ -0,0 +1,42 @@ +#include +#include +#define SIZE 80 +char* eg1(char words[]); + +int main(void) +{ + char words[SIZE]; + + eg1(words); + fputs(words, stdout); + + + return 0; +} + +char* s_gets(char* st, int n) +{ + char* ret_val; + int i = 0; + + ret_val = fgets(st, n, stdin); + if (ret_val) + { + while (st[i] != '\n' && st[i] != '\0') + i++; + if (st[i] == '\n') + st[i] = '\0'; + else + while (getchar() != '\n') + continue; + } + + return ret_val; +} +char* eg1(char words[]) +{ + puts("Enter strings empty line to quit):"); + fgets(words, SIZE, stdin); + + return words; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.sln b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.sln new file mode 100644 index 0000000..3e959bd --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "practice11.13", "practice11.13.vcxproj", "{6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}" +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 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Debug|x64.ActiveCfg = Debug|x64 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Debug|x64.Build.0 = Debug|x64 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Debug|x86.ActiveCfg = Debug|Win32 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Debug|x86.Build.0 = Debug|Win32 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Release|x64.ActiveCfg = Release|x64 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Release|x64.Build.0 = Release|x64 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Release|x86.ActiveCfg = Release|Win32 + {6EE3F7C5-38C2-4820-B7CE-12C70E1E274D}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B71358BC-169D-414A-B354-B423B6D42DED} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj new file mode 100644 index 0000000..50dc340 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {6ee3f7c5-38c2-4820-b7ce-12c70e1e274d} + practice1113 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj.filters new file mode 100644 index 0000000..00aa529 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice11.13/practice11.13.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/.suo new file mode 100644 index 0000000..f73f9ce Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/Browse.VC.db new file mode 100644 index 0000000..901ceb5 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/ipch/AutoPCH/7a48008083beedda/HOMEWORK.ipch b/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/ipch/AutoPCH/7a48008083beedda/HOMEWORK.ipch new file mode 100644 index 0000000..693106f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/.vs/practice3.11/v16/ipch/AutoPCH/7a48008083beedda/HOMEWORK.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/homework.obj b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/homework.obj new file mode 100644 index 0000000..281dcbb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/homework.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.exe b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.exe new file mode 100644 index 0000000..fe3d923 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.ilk b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.ilk new file mode 100644 index 0000000..ce1fb47 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.log b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.log new file mode 100644 index 0000000..60c570d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.log @@ -0,0 +1,3 @@ + homework.c +E:\allcode\c\primer_c_instance\practice3.11\homework.c(14,24): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 + practice3.11.vcxproj -> E:\allcode\c\primer_c_instance\practice3.11\Debug\practice3.11.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.pdb b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.pdb new file mode 100644 index 0000000..6f39899 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.command.1.tlog new file mode 100644 index 0000000..739e841 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5084faa Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.write.1.tlog new file mode 100644 index 0000000..15065e1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.command.1.tlog new file mode 100644 index 0000000..182bfdf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.read.1.tlog new file mode 100644 index 0000000..a3ba557 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.write.1.tlog new file mode 100644 index 0000000..22d9d02 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/practice3.11.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/practice3.11.lastbuildstate new file mode 100644 index 0000000..5360b63 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.tlog/practice3.11.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\practice3.11\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5413b72 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/practice3.11.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\practice3.11\Debug\practice3.11.exe +E:\allcode\c\primer_c_instance\practice3.11\Debug\practice3.11.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/vc142.idb new file mode 100644 index 0000000..53e6715 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/vc142.pdb new file mode 100644 index 0000000..64714eb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice3.11/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/homework.c b/初试笔记/c_prime_plus习题实现代码/practice3.11/homework.c new file mode 100644 index 0000000..38f9027 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/homework.c @@ -0,0 +1,19 @@ +#include +int main(void) +{ + /* + //eg2 + int ch; + scanf_s("%d",&ch); + printf("You have inputted a char,It is %c", ch); + */ + //eg5 transform ages to seconds + int age; + float second; + scanf_s("%d", &age); + second = age * 3.156e7; + printf("You have live %le seconds", second); + + return 0; + +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.sln b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.sln new file mode 100644 index 0000000..bbf18d0 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "practice3.11", "practice3.11.vcxproj", "{ACF69EAE-F33E-4123-B947-5CE08572D7A0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ACF69EAE-F33E-4123-B947-5CE08572D7A0}.Debug|x86.ActiveCfg = Debug|Win32 + {ACF69EAE-F33E-4123-B947-5CE08572D7A0}.Debug|x86.Build.0 = Debug|Win32 + {ACF69EAE-F33E-4123-B947-5CE08572D7A0}.Release|x86.ActiveCfg = Release|Win32 + {ACF69EAE-F33E-4123-B947-5CE08572D7A0}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {01F69013-AF7A-475B-89DC-9A634FBD9BFA} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj new file mode 100644 index 0000000..9a44800 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {acf69eae-f33e-4123-b947-5ce08572d7a0} + practice311 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj.filters new file mode 100644 index 0000000..1dc39d5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice3.11/practice3.11.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/.suo new file mode 100644 index 0000000..313bfdb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/Browse.VC.db new file mode 100644 index 0000000..461b527 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/ipch/AutoPCH/d52a5f6ad356e454/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/ipch/AutoPCH/d52a5f6ad356e454/EG.ipch new file mode 100644 index 0000000..7d0554c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/.vs/4.8practice/v16/ipch/AutoPCH/d52a5f6ad356e454/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.sln b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.sln new file mode 100644 index 0000000..3543380 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.8practice", "4.8practice.vcxproj", "{E8DC3A4A-29D6-4D4B-B895-994E605AC178}" +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 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Debug|x64.ActiveCfg = Debug|x64 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Debug|x64.Build.0 = Debug|x64 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Debug|x86.ActiveCfg = Debug|Win32 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Debug|x86.Build.0 = Debug|Win32 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Release|x64.ActiveCfg = Release|x64 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Release|x64.Build.0 = Release|x64 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Release|x86.ActiveCfg = Release|Win32 + {E8DC3A4A-29D6-4D4B-B895-994E605AC178}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {57237384-DCE8-4BCA-86DD-55EE226F6C31} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj new file mode 100644 index 0000000..68cd611 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {e8dc3a4a-29d6-4d4b-b895-994e605ac178} + My48practice + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj.filters new file mode 100644 index 0000000..00aa529 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/4.8practice.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/eg.c b/初试笔记/c_prime_plus习题实现代码/practice4.8/eg.c new file mode 100644 index 0000000..e84be3e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/eg.c @@ -0,0 +1,15 @@ +#include +int main(void) +{ + //eg1 printf name + /* + char name[10], surname[3]; + printf("please input your name: "); + scanf_s("%s", name); + printf("please input your surname: "); + scanf_s("%s", surname); + printf("hello! %s %s", name, surname);*/ + //eg + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.exe b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.exe new file mode 100644 index 0000000..dfad3b0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.iobj b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.iobj new file mode 100644 index 0000000..c728339 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.ipdb b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.ipdb new file mode 100644 index 0000000..fdd1994 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.log b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.log new file mode 100644 index 0000000..65536d7 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.log @@ -0,0 +1,15 @@ + eg.c +E:\allcode\c\primer_c_instance\4.8practice\eg.c(7,10): warning C4473: “scanf_s”: 没有为格式字符串传递足够的参数 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(7,10): message : 占位符和其参数预计 2 可变参数,但提供的却是 1 参数 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(7,10): message : 缺失的可变参数 2 为格式字符串“%s”所需 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(7,10): message : 此参数用作缓冲区大小 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(9,10): warning C4473: “scanf_s”: 没有为格式字符串传递足够的参数 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(9,10): message : 占位符和其参数预计 2 可变参数,但提供的却是 1 参数 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(9,10): message : 缺失的可变参数 2 为格式字符串“%s”所需 +E:\allcode\c\primer_c_instance\4.8practice\eg.c(9,10): message : 此参数用作缓冲区大小 + 正在生成代码 + 1 of 7 functions (14.3%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + 4.8practice.vcxproj -> E:\allcode\c\primer_c_instance\4.8practice\x64\Release\4.8practice.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.pdb b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.pdb new file mode 100644 index 0000000..cfeacbc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/4.8practice.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/4.8practice.lastbuildstate new file mode 100644 index 0000000..34b4d5b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/4.8practice.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|x64|E:\allcode\c\primer_c_instance\4.8practice\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/4.8practice.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/4.8practice.write.1u.tlog new file mode 100644 index 0000000..6d3ccb1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/4.8practice.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d8b16e4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.read.1.tlog new file mode 100644 index 0000000..97a618c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.write.1.tlog new file mode 100644 index 0000000..30176c1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.command.1.tlog new file mode 100644 index 0000000..6b3b926 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.read.1.tlog new file mode 100644 index 0000000..03f0641 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.write.1.tlog new file mode 100644 index 0000000..2ff0825 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..67e1a54 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/4.8practice.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\4.8practice\x64\Release\4.8practice.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/eg.obj new file mode 100644 index 0000000..02ac330 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/vc142.pdb new file mode 100644 index 0000000..e83b639 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice4.8/x64/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/.suo new file mode 100644 index 0000000..4afc822 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/Browse.VC.db new file mode 100644 index 0000000..e8c6de8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/ipch/AutoPCH/e9c7a73d60b73280/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/ipch/AutoPCH/e9c7a73d60b73280/EG.ipch new file mode 100644 index 0000000..468154c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/.vs/practice5.11/v16/ipch/AutoPCH/e9c7a73d60b73280/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/eg.obj new file mode 100644 index 0000000..91ef870 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.exe b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.exe new file mode 100644 index 0000000..71d1d89 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.iobj b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.iobj new file mode 100644 index 0000000..364fa95 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.ipdb b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.ipdb new file mode 100644 index 0000000..3b4e841 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.log b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.log new file mode 100644 index 0000000..7ce7607 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.log @@ -0,0 +1,7 @@ + eg.c + 正在生成代码 + 1 of 7 functions (14.3%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + practice5.11.vcxproj -> E:\allcode\c\primer_c_instance\practice5.11\Release\practice5.11.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.pdb b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.pdb new file mode 100644 index 0000000..bdd21db Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.command.1.tlog new file mode 100644 index 0000000..18b303e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4196a5a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.write.1.tlog new file mode 100644 index 0000000..0a026f8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.command.1.tlog new file mode 100644 index 0000000..747fead Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.read.1.tlog new file mode 100644 index 0000000..773e634 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.write.1.tlog new file mode 100644 index 0000000..da4580b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/practice5.11.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/practice5.11.lastbuildstate new file mode 100644 index 0000000..ad3396f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/practice5.11.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\practice5.11\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/practice5.11.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/practice5.11.write.1u.tlog new file mode 100644 index 0000000..6c5b57e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.tlog/practice5.11.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..458e5bf --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/practice5.11.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\practice5.11\Release\practice5.11.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/vc142.pdb new file mode 100644 index 0000000..4fbd2a0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice5.11/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/eg.c b/初试笔记/c_prime_plus习题实现代码/practice5.11/eg.c new file mode 100644 index 0000000..a5dec1b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/eg.c @@ -0,0 +1,18 @@ +#include +int main(void) +{ + //eg2 while practice + /* + int i=0; + int num; + printf("Please input a number:"); + scanf_s("%d", &num); + while (i++ <=10) + { + printf("%d ", num++); + } + */ + //eg + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.sln b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.sln new file mode 100644 index 0000000..bd0da6c --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "practice5.11", "practice5.11.vcxproj", "{A1A5528F-E521-43D8-B557-814EAC93B04E}" +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 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Debug|x64.ActiveCfg = Debug|x64 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Debug|x64.Build.0 = Debug|x64 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Debug|x86.ActiveCfg = Debug|Win32 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Debug|x86.Build.0 = Debug|Win32 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Release|x64.ActiveCfg = Release|x64 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Release|x64.Build.0 = Release|x64 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Release|x86.ActiveCfg = Release|Win32 + {A1A5528F-E521-43D8-B557-814EAC93B04E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3BAF8FDA-81D0-40D7-87A3-87DF7A28A597} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj new file mode 100644 index 0000000..2b94dee --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {a1a5528f-e521-43d8-b557-814eac93b04e} + practice511 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj.filters new file mode 100644 index 0000000..00aa529 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice5.11/practice5.11.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/.suo new file mode 100644 index 0000000..eb2630c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/Browse.VC.db new file mode 100644 index 0000000..e0df2d1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/ipch/AutoPCH/18bb8008380e119c/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/ipch/AutoPCH/18bb8008380e119c/EG.ipch new file mode 100644 index 0000000..2a9e9e1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/.vs/chapter6.16/v16/ipch/AutoPCH/18bb8008380e119c/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.exe b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.exe new file mode 100644 index 0000000..d6b749b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.iobj b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.iobj new file mode 100644 index 0000000..f4af79b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.ipdb b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.ipdb new file mode 100644 index 0000000..a68b616 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.log b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.log new file mode 100644 index 0000000..7915145 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.log @@ -0,0 +1,7 @@ + eg.c + 正在生成代码 + 1 of 4 functions (25.0%) were compiled, the rest were copied from previous compilation. + 0 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter6.16.vcxproj -> E:\allcode\c\primer_c_instance\chapter6.16\Release\chapter6.16.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.pdb b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.pdb new file mode 100644 index 0000000..78b620f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.command.1.tlog new file mode 100644 index 0000000..9580ee1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.read.1.tlog new file mode 100644 index 0000000..63017e5 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.write.1.tlog new file mode 100644 index 0000000..0a11aed Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/chapter6.16.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/chapter6.16.lastbuildstate new file mode 100644 index 0000000..e23ec67 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/chapter6.16.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\chapter6.16\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/chapter6.16.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/chapter6.16.write.1u.tlog new file mode 100644 index 0000000..e43eedb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/chapter6.16.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.command.1.tlog new file mode 100644 index 0000000..28a55da Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.read.1.tlog new file mode 100644 index 0000000..23b9036 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.write.1.tlog new file mode 100644 index 0000000..2332aba Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5ab269f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/chapter6.16.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +E:\allcode\c\primer_c_instance\chapter6.16\Release\chapter6.16.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/eg.obj new file mode 100644 index 0000000..a56c311 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/vc142.pdb new file mode 100644 index 0000000..cb2cf55 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice6.16/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.sln b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.sln new file mode 100644 index 0000000..d96e191 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter6.16", "chapter6.16.vcxproj", "{31894278-D98D-4CD9-8BB7-D3B02869BF89}" +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 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Debug|x64.ActiveCfg = Debug|x64 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Debug|x64.Build.0 = Debug|x64 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Debug|x86.ActiveCfg = Debug|Win32 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Debug|x86.Build.0 = Debug|Win32 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Release|x64.ActiveCfg = Release|x64 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Release|x64.Build.0 = Release|x64 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Release|x86.ActiveCfg = Release|Win32 + {31894278-D98D-4CD9-8BB7-D3B02869BF89}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {99018307-906C-4975-A5E2-3F0D0489D60B} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj new file mode 100644 index 0000000..fb1f555 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {31894278-d98d-4cd9-8bb7-d3b02869bf89} + chapter616 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj.filters new file mode 100644 index 0000000..00aa529 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/chapter6.16.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice6.16/eg.c b/初试笔记/c_prime_plus习题实现代码/practice6.16/eg.c new file mode 100644 index 0000000..3bd9413 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice6.16/eg.c @@ -0,0 +1,27 @@ +#include +int main(void) +{ + /*//eg1 build a array + char al[30]; + int j = 0; + for (char i = 'a'; i <= 'z'; i++) + { + al[j++] = i; + printf("%c",al[j-1]); + }*/ + + //eg4 nested loop + char ch = 'A'; + int j = 0; + while (ch != 'V') { + j++; + for (int i = 1; i <= j; i++) + { + printf("%c", ch++); + if (ch == 'V') + break; + } + printf("\n"); + } + +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/.suo new file mode 100644 index 0000000..8f54e46 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/Browse.VC.db new file mode 100644 index 0000000..902b6e5 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/ipch/AutoPCH/f82d1b0553a4ecc1/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/ipch/AutoPCH/f82d1b0553a4ecc1/EG.ipch new file mode 100644 index 0000000..40362de Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/ipch/AutoPCH/f82d1b0553a4ecc1/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/ipch/AutoPCH/f87ad5c6c5c2444b/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/ipch/AutoPCH/f87ad5c6c5c2444b/EG.ipch new file mode 100644 index 0000000..9bd26c8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/.vs/chapter7.12/v16/ipch/AutoPCH/f87ad5c6c5c2444b/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.exe b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.exe new file mode 100644 index 0000000..2caa78d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.iobj b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.iobj new file mode 100644 index 0000000..9b0c37c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.iobj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.ipdb b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.ipdb new file mode 100644 index 0000000..d32f402 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.ipdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.log b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.log new file mode 100644 index 0000000..06959d5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.log @@ -0,0 +1,10 @@ + eg.c +E:\allcode\c\primer_c_instance\practice7.12\eg.c(106,44): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 +E:\allcode\c\primer_c_instance\practice7.12\eg.c(108,106): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 +E:\allcode\c\primer_c_instance\practice7.12\eg.c(114,39): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 + 正在生成代码 + 7 of 7 functions (100.0%) were compiled. + 3 functions were new in current compilation + 0 functions had inline decision re-evaluated but remain unchanged + 已完成代码的生成 + chapter7.12.vcxproj -> E:\allcode\c\primer_c_instance\practice7.12\Release\chapter7.12.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.pdb b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.pdb new file mode 100644 index 0000000..2d43aa3 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.command.1.tlog new file mode 100644 index 0000000..3c8f7eb Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2ee9ace Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.write.1.tlog new file mode 100644 index 0000000..284fbc2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/chapter7.12.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/chapter7.12.lastbuildstate new file mode 100644 index 0000000..4ff6d82 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/chapter7.12.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Release|Win32|E:\allcode\c\primer_c_instance\practice7.12\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/chapter7.12.write.1u.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/chapter7.12.write.1u.tlog new file mode 100644 index 0000000..7929e50 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/chapter7.12.write.1u.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.command.1.tlog new file mode 100644 index 0000000..ea73530 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.read.1.tlog new file mode 100644 index 0000000..ad8d1e1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.write.1.tlog new file mode 100644 index 0000000..2fef593 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..cc6310a --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/chapter7.12.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter7.12\Release\chapter7.12.exe +E:\allcode\c\primer_c_instance\practice7.12\Release\chapter7.12.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/eg.obj new file mode 100644 index 0000000..7ea8fb7 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/vc142.pdb new file mode 100644 index 0000000..fb50f6c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice7.12/Release/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.sln b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.sln new file mode 100644 index 0000000..248aac9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter7.12", "chapter7.12.vcxproj", "{47255F07-738E-4CD1-8AD7-4604DA3ADDC6}" +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 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Debug|x64.ActiveCfg = Debug|x64 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Debug|x64.Build.0 = Debug|x64 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Debug|x86.ActiveCfg = Debug|Win32 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Debug|x86.Build.0 = Debug|Win32 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Release|x64.ActiveCfg = Release|x64 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Release|x64.Build.0 = Release|x64 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Release|x86.ActiveCfg = Release|Win32 + {47255F07-738E-4CD1-8AD7-4604DA3ADDC6}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4B59BE4E-1144-42AC-9E11-167D76250206} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj new file mode 100644 index 0000000..20f890d --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {47255f07-738e-4cd1-8ad7-4604da3addc6} + chapter712 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj.filters new file mode 100644 index 0000000..00aa529 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/chapter7.12.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice7.12/eg.c b/初试笔记/c_prime_plus习题实现代码/practice7.12/eg.c new file mode 100644 index 0000000..9695240 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice7.12/eg.c @@ -0,0 +1,128 @@ +#include +#include +#include +#define STOP '#' +int main(void) +{ + /*eg1 + char ch,pre; + long n_chars = 0L; + int n_lines = 0, n_words = 0, p_lines = 0; + bool inword = false; + + printf("Please enter text to analyzed(| to end):\n"); + pre = '\n'; + while ((ch = getchar()) !=STOP) + { + n_chars++; //ͳַ + if (ch == '\n') + n_lines++; + if (!isspace(ch) && !inword) + { + inword = true; + n_words++; + } + if (isspace(ch) && inword) + inword = false; + pre = ch; + } + if (pre != '\n') + p_lines = 1; + printf("characters=%ld,words=%d,lines=%d,", n_chars, n_words, n_lines); + printf("partial lines=%d\n", p_lines); + */ + + /*//eg2 + char ch; + int i = 0; + while ((ch = getchar()) != STOP) + { + printf("%d ", ch); + if (i++ % 8 == 7) + printf("\n"); + }*/ + + /*//eg3 + int n,odd=0,even=0,osum=0,esum=0; + printf("Please input a number to account(0 to quit):\n"); + while (scanf_s("%d", &n), n != 0) { + n % 2 == 0 ? (even++,esum+=n) : (odd++,osum+=n); + } + printf("You have put %d even numbers,and the average is %d ;\nYou have put %d odd numbers,and the average is %d .", + even, esum / even, odd, osum / odd);*/ + + /*//eg 7 +#define HOURSWAGE 1000 +#define UPLIMIT 40 +#define FIRSTSTAGE 300 +#define FIRSTTAX 0.15 +#define SECONDSTAGE 450 +#define SECONDTAX 0.2 +#define THIRDTAX 0.25 + int hours, salary, tax, recive; + printf("Please input how many hours you have work:"); + scanf_s("%d", &hours); + salary = hours <= UPLIMIT ? HOURSWAGE * hours : HOURSWAGE * UPLIMIT + 1.5*(hours - UPLIMIT); + if (salary <= FIRSTSTAGE) + tax = salary * FIRSTTAX; + else if (salary <= SECONDSTAGE) + tax = FIRSTSTAGE * FIRSTTAX + (salary - FIRSTSTAGE) * SECONDTAX; + else + tax = FIRSTSTAGE * FIRSTTAX + 150* SECONDTAX + (salary - SECONDSTAGE) * THIRDTAX; + printf("Accoding to computer,your salary is %d,\nand you have paid taxs are %d,\nthen you have recived %d in your pocket." + , salary, tax, salary - tax);*/ + +//eg11 +#define seafood 2.05 +#define beet 1.15 +#define carrot 1.09 + float a=0,b=0,c=0,weight = 0, cost = 0, discount = 0, othercost = 0; + char ch; + printf("Welcome!\nwhat can I do for you? The price list is as follow:\nseafood:%5.2f;beet:%5.2f;carrot:%5.2f.\n", seafood, beet, carrot); + printf("What's do you need?(q to quit)\n"); + while ((ch = getchar()) != 'q') { + if ('\n' == ch) + continue; + switch (ch) { + case'a': + printf("How many seefood do you want:\n"); + scanf_s("%f", &a); + break; + case'b': + printf("How many beet do you want:\n"); + scanf_s("%f", &b); + break; + case'c': + printf("How many carrot do you want:\n"); + scanf_s("%f", &c); + break; + default: + printf("Please reconsider.\n"); + break; + } + printf("What's more?(q to quit)\n"); + } + weight = a + b + c; + cost = seafood * a + beet * b + carrot * c; + /* + if (cost > 100) { + cost = cost * 0.95; + printf("congratulations,your have saved %.4f dollars.\n", cost * 0.05); + } + */ + cost=cost<=100?cost:(printf("congratulations,your have saved %.4f dollars.\n", cost * 0.05),cost * 0.95); + if (weight <= 5) + othercost = 6.5; + else if (weight <= 20) + othercost = 14; + else + othercost = 14 + (weight - 20) * 0.5; + printf("Then you have ordered %.2f pounds food;\nThe cost are %.2f ;\nand tranform have cost %.2f." + , weight,cost,othercost); +/*//test +int i = 0; +i = 6<7? 3 : (4, 5); +printf("%d", i);*/ + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/.suo new file mode 100644 index 0000000..221183b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/Browse.VC.db new file mode 100644 index 0000000..485d736 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/ipch/AutoPCH/74174e800f65e296/PRACTICE8.11.ipch b/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/ipch/AutoPCH/74174e800f65e296/PRACTICE8.11.ipch new file mode 100644 index 0000000..55b3cae Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/.vs/chapter8.0/v16/ipch/AutoPCH/74174e800f65e296/PRACTICE8.11.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.exe b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.exe new file mode 100644 index 0000000..41c542a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.ilk b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.ilk new file mode 100644 index 0000000..e3afaa9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.log b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.log new file mode 100644 index 0000000..b828c7e --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.log @@ -0,0 +1 @@ + chapter8.0.vcxproj -> E:\allcode\c\primer_c_instance\chapter8.0\Debug\chapter8.0.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.pdb b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.pdb new file mode 100644 index 0000000..f3a8679 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.command.1.tlog new file mode 100644 index 0000000..5aeaade Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.read.1.tlog new file mode 100644 index 0000000..7b695a9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.write.1.tlog new file mode 100644 index 0000000..28ff8d2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/chapter8.0.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/chapter8.0.lastbuildstate new file mode 100644 index 0000000..1ccfbe5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/chapter8.0.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\chapter8.0\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.command.1.tlog new file mode 100644 index 0000000..6adab72 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.read.1.tlog new file mode 100644 index 0000000..644c7e1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.write.1.tlog new file mode 100644 index 0000000..7eafb7d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..ce09fba --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/chapter8.0.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\chapter8.0\Debug\chapter8.0.exe +E:\allcode\c\primer_c_instance\chapter8.0\Debug\chapter8.0.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/practice8.11.obj b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/practice8.11.obj new file mode 100644 index 0000000..1d1b401 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/practice8.11.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/vc142.idb new file mode 100644 index 0000000..fbb5ce1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/vc142.pdb new file mode 100644 index 0000000..cda7e0f Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice8.11/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.sln b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.sln new file mode 100644 index 0000000..101e1b6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter8.0", "chapter8.0.vcxproj", "{33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}" +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 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Debug|x64.ActiveCfg = Debug|x64 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Debug|x64.Build.0 = Debug|x64 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Debug|x86.ActiveCfg = Debug|Win32 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Debug|x86.Build.0 = Debug|Win32 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Release|x64.ActiveCfg = Release|x64 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Release|x64.Build.0 = Release|x64 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Release|x86.ActiveCfg = Release|Win32 + {33DE7BB4-74B2-4DAF-B6AC-40A6FE7C9AD7}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {40A09B7D-711C-41E1-A264-1B454111609E} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj new file mode 100644 index 0000000..3b44a1b --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {33de7bb4-74b2-4daf-b6ac-40a6fe7c9ad7} + chapter80 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj.filters new file mode 100644 index 0000000..1c661ec --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/chapter8.0.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice8.11/practice8.11.c b/初试笔记/c_prime_plus习题实现代码/practice8.11/practice8.11.c new file mode 100644 index 0000000..95e7b78 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice8.11/practice8.11.c @@ -0,0 +1,31 @@ +#include +int main(void) +{ + /*//eg1 + int count=0; + int ch; + + while ((ch = getchar()) != EOF) + count++; + printf("This text include %d chars.\n", count);*/ + + //eg2 + int ch; + int count=1; + while ((ch = getchar()) != EOF) + { + if (ch == '\n') + printf("\\n|%d ",ch); + else if( ch == '\t') + printf("\\t|%d ",ch); + else if(ch>=0&&ch<=' ') + printf("^%c|%d ",ch+64,ch); + else + printf("%c|%d ", ch,ch); + if (count++ % 10 == 0) + printf("\n"); + } + printf("\n"); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/.suo b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/.suo new file mode 100644 index 0000000..66a863a Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/Browse.VC.db new file mode 100644 index 0000000..c147a63 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/1eaa20b178b7a657/EG7.ipch b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/1eaa20b178b7a657/EG7.ipch new file mode 100644 index 0000000..c91d537 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/1eaa20b178b7a657/EG7.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/5fe4b04834647374/EG.ipch b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/5fe4b04834647374/EG.ipch new file mode 100644 index 0000000..63e1e0b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/5fe4b04834647374/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/8245f8ce1601e9a2/EG1AND4.ipch b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/8245f8ce1601e9a2/EG1AND4.ipch new file mode 100644 index 0000000..8be8969 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/8245f8ce1601e9a2/EG1AND4.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/bf2fc1dd7876aae7/FUNCTIONS.ipch b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/bf2fc1dd7876aae7/FUNCTIONS.ipch new file mode 100644 index 0000000..f2b11b0 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/.vs/ractice9.11/v16/ipch/AutoPCH/bf2fc1dd7876aae7/FUNCTIONS.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg.obj b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg.obj new file mode 100644 index 0000000..ec323b2 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg1and4.obj b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg1and4.obj new file mode 100644 index 0000000..aacd7b6 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg1and4.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg7.obj b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg7.obj new file mode 100644 index 0000000..20748dc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/eg7.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/functions.obj b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/functions.obj new file mode 100644 index 0000000..0e932cd Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/functions.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.exe b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.exe new file mode 100644 index 0000000..70b497b Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.ilk b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.ilk new file mode 100644 index 0000000..44fdc5e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.log b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.log new file mode 100644 index 0000000..9b79af1 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.log @@ -0,0 +1,4 @@ + eg.c + eg7.c + 正在生成代码... + ractice9.11.vcxproj -> E:\allcode\c\primer_c_instance\ractice9.11\Debug\ractice9.11.exe diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.pdb b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.pdb new file mode 100644 index 0000000..faef9c1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.command.1.tlog new file mode 100644 index 0000000..0a48bc9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.read.1.tlog new file mode 100644 index 0000000..aa87d5d Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.write.1.tlog new file mode 100644 index 0000000..d9d57de Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.command.1.tlog new file mode 100644 index 0000000..6183951 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.read.1.tlog new file mode 100644 index 0000000..f452a0e Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.write.1.tlog new file mode 100644 index 0000000..719fca8 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/ractice9.11.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/ractice9.11.lastbuildstate new file mode 100644 index 0000000..fb79bac --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.tlog/ractice9.11.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\ractice9.11\| diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..8ee60c9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/ractice9.11.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\ractice9.11\Debug\ractice9.11.exe +E:\allcode\c\primer_c_instance\ractice9.11\Debug\ractice9.11.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/vc142.idb new file mode 100644 index 0000000..923f235 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/vc142.pdb new file mode 100644 index 0000000..9f87e73 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/practice9.11/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/eg.c b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg.c new file mode 100644 index 0000000..8efd1dc --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg.c @@ -0,0 +1,21 @@ +#include "eg.h" + +int main(void) +{ + /* //eg1 + double a, b; + printf("Please input two numbers:\n"); + while((scanf_s("%lf %lf", &a, &b))==2) + printf("The min number is %.2f.", min(a, b)); + */ + + /* + double a, b; + getnumber(&a,&b); + eg4(a, b); + */ + + eg7(); + + return 0; +} diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/eg.h b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg.h new file mode 100644 index 0000000..a3221bd --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg.h @@ -0,0 +1,7 @@ +#include +#include +double min(double a, double b); +void getnumber(double* a, double* b); +double eg4(double a, double b); +int eg7(void); +int fun(char ch); \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/eg1and4.c b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg1and4.c new file mode 100644 index 0000000..5d24063 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg1and4.c @@ -0,0 +1,29 @@ +#include +#include "eg.h" +//eg4 +double eg4(double a, double b) +{ + printf("Through the calculate,the result is %lf.", 1 / ((1 / a + 1 / b) / 2)); + return 0; +} + + +//eg1 +double min(double a, double b) +{ + if (a > b) + return b; + else + return a; +} +void getnumber(double* x, double* y) +{ + double a, b; + printf("Please input two numbers:\n"); + while ((scanf_s("%lf %lf", &a, &b)) != 2) + { + scanf_s("%*s"); + printf("Please enter two float.\n"); + } + *x = a; *y = b; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/eg7.c b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg7.c new file mode 100644 index 0000000..c5cd7d6 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/eg7.c @@ -0,0 +1,33 @@ +#include "eg.h" + + +int eg7(void) +{ + int ch; + int a; + while ((ch = getchar()) != EOF) + { + a = fun(ch); + if (a == -1) + printf("Input wrong,please try again.\n"); + else + printf("%c is number %d.\n", ch, a); + while ((ch=getchar())!= '\n') + continue; + } + printf("Bye!\n"); + return 0; +} + +int fun(char ch) +{ + int n; + if (isalpha(ch)) + { + ch = toupper(ch); + n = ch - 64; + return n; + } + else + return -1; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.sln b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.sln new file mode 100644 index 0000000..4dde1c5 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ractice9.11", "ractice9.11.vcxproj", "{B6CA324B-90E4-484A-83AF-10FA356B2EA2}" +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 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Debug|x64.ActiveCfg = Debug|x64 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Debug|x64.Build.0 = Debug|x64 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Debug|x86.ActiveCfg = Debug|Win32 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Debug|x86.Build.0 = Debug|Win32 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Release|x64.ActiveCfg = Release|x64 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Release|x64.Build.0 = Release|x64 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Release|x86.ActiveCfg = Release|Win32 + {B6CA324B-90E4-484A-83AF-10FA356B2EA2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0B27F16A-50E3-424A-BE0A-58DF72D2327C} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj new file mode 100644 index 0000000..d57d4db --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj @@ -0,0 +1,152 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b6ca324b-90e4-484a-83af-10fa356b2ea2} + ractice911 + 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 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj.filters new file mode 100644 index 0000000..2cee6ea --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj.filters @@ -0,0 +1,33 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/practice9.11/ractice9.11.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/vc/Debug/chapter10.18.pch b/初试笔记/c_prime_plus习题实现代码/vc/Debug/chapter10.18.pch new file mode 100644 index 0000000..68d4129 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/Debug/chapter10.18.pch differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/Debug/vc60.idb b/初试笔记/c_prime_plus习题实现代码/vc/Debug/vc60.idb new file mode 100644 index 0000000..f305132 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/Debug/vc60.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/Debug/vc60.pdb b/初试笔记/c_prime_plus习题实现代码/vc/Debug/vc60.pdb new file mode 100644 index 0000000..500dd12 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/Debug/vc60.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.c b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.c new file mode 100644 index 0000000..2bc8927 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.c @@ -0,0 +1,52 @@ +#include +#define ROWS 3 +#define COLS 4 +int sum2d(int rows, int cols, int ar[rows][cols]); + +int main(void) +{ + int i, j; + int rs = 3; + int cs = 10; + int junk[ROWS][COLS] = { + {2,4,6,8}, + {3,5,7,9}, + {12,10,8,6} + }; + + int morejunk[ROWS - 1][COLS + 2] = { + {20,30,40,50,60,70}, + {5,6,7,8,9,10} + }; + + int varr[rs][cs]; + + for (i = 0; i < rs; i++) + for (j = 0; j < cs; j++) + varr[i][j] = i * j + j; + + printf("3x5 array\n"); + printf("Sum of all elements=%d\n", sum2d(ROWS, COLS, junk)); + + printf("2x6 array\n"); + printf("Sum of all elements=%d\n", sum2d(ROWS - 1, COLS + 2, morejunk)); + + printf("3x10 VLA\n"); + printf("Sum of all elements=%d\n", sum2d(rs, cs, varr)); + + return 0; +} + +//?????????? +int sum2d(int rows, int cols, int ar[rows][cols]) +{ + int r; + int c; + int tot = 0; + + for (r = 0; r < rows; r++) + for (c = 0; c < cols; c++) + tot += ar[r][c]; + + return tot; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.dsp b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.dsp new file mode 100644 index 0000000..675be80 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.dsp @@ -0,0 +1,88 @@ +# Microsoft Developer Studio Project File - Name="chapter10.18" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=chapter10.18 - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "chapter10.18.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "chapter10.18.mak" CFG="chapter10.18 - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "chapter10.18 - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "chapter10.18 - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "chapter10.18 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x804 /d "NDEBUG" +# ADD RSC /l 0x804 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "chapter10.18 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x804 /d "_DEBUG" +# ADD RSC /l 0x804 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "chapter10.18 - Win32 Release" +# Name "chapter10.18 - Win32 Debug" +# Begin Source File + +SOURCE=.\chapter10.18.c +# End Source File +# End Target +# End Project diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.dsw b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.dsw new file mode 100644 index 0000000..63b69c2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# : ܱ༭ɾùļ + +############################################################################### + +Project: "chapter10.18"=.\chapter10.18.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.ncb b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.ncb new file mode 100644 index 0000000..579faa4 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.ncb differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.opt b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.opt new file mode 100644 index 0000000..fe128be Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.opt differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.plg b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.plg new file mode 100644 index 0000000..6fbb261 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter10.18.plg @@ -0,0 +1,52 @@ + + +
+

Build Log

+

+--------------------Configuration: chapter10.18 - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\Users\18295\AppData\Local\Temp\RSP44ED.tmp" with contents +[ +/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/chapter10.18.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"E:\allcode\c\primer_c_instance\vc\chapter10.18.c" +] +Creating command line "cl.exe @C:\Users\18295\AppData\Local\Temp\RSP44ED.tmp" +Creating temporary file "C:\Users\18295\AppData\Local\Temp\RSP44EE.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/chapter10.18.pdb" /debug /machine:I386 /out:"Debug/chapter10.18.exe" /pdbtype:sept +.\Debug\chapter10.18.obj +] +Creating command line "link.exe @C:\Users\18295\AppData\Local\Temp\RSP44EE.tmp" +

Output Window

+Compiling... +chapter10.18.c +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(4) : error C2057: expected constant expression +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(4) : error C2466: cannot allocate an array of constant size 0 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(4) : error C2057: expected constant expression +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(4) : error C2466: cannot allocate an array of constant size 0 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(4) : error C2087: '' : missing subscript +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(22) : error C2057: expected constant expression +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(22) : error C2466: cannot allocate an array of constant size 0 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(22) : error C2057: expected constant expression +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(22) : error C2466: cannot allocate an array of constant size 0 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(22) : error C2087: '' : missing subscript +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(22) : error C2133: 'varr' : unknown size +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(29) : warning C4048: different array subscripts : 'int (*)[1]' and 'int [3][4]' +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(29) : warning C4024: 'sum2d' : different types for formal and actual parameter 3 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(32) : warning C4048: different array subscripts : 'int (*)[1]' and 'int [2][6]' +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(32) : warning C4024: 'sum2d' : different types for formal and actual parameter 3 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(41) : error C2057: expected constant expression +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(41) : error C2466: cannot allocate an array of constant size 0 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(41) : error C2057: expected constant expression +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(41) : error C2466: cannot allocate an array of constant size 0 +E:\allcode\c\primer_c_instance\vc\chapter10.18.c(41) : error C2087: '' : missing subscript +ִ cl.exe ʱ. + + + +

Results

+chapter10.18.exe - 1 error(s), 0 warning(s) +
+ + diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/.suo b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/.suo new file mode 100644 index 0000000..5d5b9b3 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/Browse.VC.db new file mode 100644 index 0000000..6e53508 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/ipch/AutoPCH/19ffffcc2094b237/TREE.ipch b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/ipch/AutoPCH/19ffffcc2094b237/TREE.ipch new file mode 100644 index 0000000..4231353 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/.vs/chapter17.11/v16/ipch/AutoPCH/19ffffcc2094b237/TREE.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.sln b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.sln new file mode 100644 index 0000000..8244a09 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter17.11", "chapter17.11.vcxproj", "{D17322C2-F332-4ADC-A022-57EEDA880418}" +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 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Debug|x64.ActiveCfg = Debug|x64 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Debug|x64.Build.0 = Debug|x64 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Debug|x86.ActiveCfg = Debug|Win32 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Debug|x86.Build.0 = Debug|Win32 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Release|x64.ActiveCfg = Release|x64 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Release|x64.Build.0 = Release|x64 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Release|x86.ActiveCfg = Release|Win32 + {D17322C2-F332-4ADC-A022-57EEDA880418}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EC7F7903-1B6B-4E17-95F7-5CC742140460} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj new file mode 100644 index 0000000..eddc01f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + 16.0 + Win32Proj + {d17322c2-f332-4adc-a022-57eeda880418} + chapter1711 + 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/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj.filters new file mode 100644 index 0000000..0213f34 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj.filters @@ -0,0 +1,17 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/chapter17.11.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/tree.c b/初试笔记/c_prime_plus习题实现代码/vc/chapter17.11/tree.c new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/c_prime_plus习题实现代码/vc/chapter3.c b/初试笔记/c_prime_plus习题实现代码/vc/chapter3.c new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/.suo b/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/.suo new file mode 100644 index 0000000..5b8b260 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/.suo differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/Browse.VC.db b/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/Browse.VC.db new file mode 100644 index 0000000..7612217 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/Browse.VC.db differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/ipch/AutoPCH/8c55235c6d207dd4/EG.ipch b/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/ipch/AutoPCH/8c55235c6d207dd4/EG.ipch new file mode 100644 index 0000000..26c3dcc Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/.vs/test/v16/ipch/AutoPCH/8c55235c6d207dd4/EG.ipch differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/eg.obj b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/eg.obj new file mode 100644 index 0000000..7a4ce64 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/eg.obj differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.exe b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.exe new file mode 100644 index 0000000..794f647 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.exe differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.ilk b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.ilk new file mode 100644 index 0000000..8570bd9 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.ilk differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.log b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.log new file mode 100644 index 0000000..7d5eff2 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.log @@ -0,0 +1,2 @@ + eg.c + test.vcxproj -> E:\allcode\c\primer_c_instance\vc\test\Debug\test.exe diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.pdb b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.pdb new file mode 100644 index 0000000..0919800 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.command.1.tlog new file mode 100644 index 0000000..680feaf Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.read.1.tlog new file mode 100644 index 0000000..a164d6c Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ce94f29 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/CL.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.command.1.tlog b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.command.1.tlog new file mode 100644 index 0000000..1193d35 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.command.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.read.1.tlog b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.read.1.tlog new file mode 100644 index 0000000..633f1f1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.read.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.write.1.tlog b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.write.1.tlog new file mode 100644 index 0000000..918c2b1 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/link.write.1.tlog differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/test.lastbuildstate b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/test.lastbuildstate new file mode 100644 index 0000000..54914ee --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.tlog/test.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\primer_c_instance\vc\test\| diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.vcxproj.FileListAbsolute.txt b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..c5cc3e0 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/test.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\primer_c_instance\vc\test\Debug\test.exe +E:\allcode\c\primer_c_instance\vc\test\Debug\test.pdb diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/vc142.idb b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/vc142.idb new file mode 100644 index 0000000..c08c4fa Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/vc142.idb differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/vc142.pdb b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/vc142.pdb new file mode 100644 index 0000000..8ea5e17 Binary files /dev/null and b/初试笔记/c_prime_plus习题实现代码/vc/test/Debug/vc142.pdb differ diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/eg.c b/初试笔记/c_prime_plus习题实现代码/vc/test/eg.c new file mode 100644 index 0000000..983f38f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/eg.c @@ -0,0 +1,16 @@ +#include +main() +{ + int num[4] = { 4,6,9,11 }; + int* p = &num[0]; + for (int i = 0; i < 4; i++) + { + printf("%d\n", num[i]); + } + for (int i = 0; i < 4; i++) + { + printf("%d\n", *p); + printf("%d\n", *p++); + } + return 1; +} \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/test.sln b/初试笔记/c_prime_plus习题实现代码/vc/test/test.sln new file mode 100644 index 0000000..ac8691f --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/test.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test.vcxproj", "{BE37D1A6-D368-4598-A966-BB0DE390A7C2}" +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 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Debug|x64.ActiveCfg = Debug|x64 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Debug|x64.Build.0 = Debug|x64 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Debug|x86.ActiveCfg = Debug|Win32 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Debug|x86.Build.0 = Debug|Win32 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Release|x64.ActiveCfg = Release|x64 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Release|x64.Build.0 = Release|x64 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Release|x86.ActiveCfg = Release|Win32 + {BE37D1A6-D368-4598-A966-BB0DE390A7C2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7B427F92-8F92-4883-9854-72FA33856445} + EndGlobalSection +EndGlobal diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj b/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj new file mode 100644 index 0000000..72bb8a9 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {be37d1a6-d368-4598-a966-bb0de390a7c2} + test + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj.filters b/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj.filters new file mode 100644 index 0000000..00aa529 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj.user b/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/c_prime_plus习题实现代码/vc/test/test.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/10.3/.vs/10.3/v16/.suo b/初试笔记/历年真题实现代码/10.3/.vs/10.3/v16/.suo new file mode 100644 index 0000000..1e42930 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.3/.vs/10.3/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/10.3/.vs/10.3/v16/Browse.VC.db b/初试笔记/历年真题实现代码/10.3/.vs/10.3/v16/Browse.VC.db new file mode 100644 index 0000000..7159163 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.3/.vs/10.3/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/10.3/10.3.sln b/初试笔记/历年真题实现代码/10.3/10.3.sln new file mode 100644 index 0000000..dafc524 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.3/10.3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "10.3", "10.3.vcxproj", "{CAD1664A-F43E-4771-AD92-719414015526}" +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 + {CAD1664A-F43E-4771-AD92-719414015526}.Debug|x64.ActiveCfg = Debug|x64 + {CAD1664A-F43E-4771-AD92-719414015526}.Debug|x64.Build.0 = Debug|x64 + {CAD1664A-F43E-4771-AD92-719414015526}.Debug|x86.ActiveCfg = Debug|Win32 + {CAD1664A-F43E-4771-AD92-719414015526}.Debug|x86.Build.0 = Debug|Win32 + {CAD1664A-F43E-4771-AD92-719414015526}.Release|x64.ActiveCfg = Release|x64 + {CAD1664A-F43E-4771-AD92-719414015526}.Release|x64.Build.0 = Release|x64 + {CAD1664A-F43E-4771-AD92-719414015526}.Release|x86.ActiveCfg = Release|Win32 + {CAD1664A-F43E-4771-AD92-719414015526}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9F27B62A-94E9-4C01-8665-D9FB9E231556} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/10.3/10.3.vcxproj b/初试笔记/历年真题实现代码/10.3/10.3.vcxproj new file mode 100644 index 0000000..351baae --- /dev/null +++ b/初试笔记/历年真题实现代码/10.3/10.3.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {cad1664a-f43e-4771-ad92-719414015526} + My103 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/10.3/10.3.vcxproj.filters b/初试笔记/历年真题实现代码/10.3/10.3.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.3/10.3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/10.3/10.3.vcxproj.user b/初试笔记/历年真题实现代码/10.3/10.3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.3/10.3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/10.3/源.cpp b/初试笔记/历年真题实现代码/10.3/源.cpp new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/.suo b/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/.suo new file mode 100644 index 0000000..7b9b655 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/Browse.VC.db b/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/Browse.VC.db new file mode 100644 index 0000000..e2a7d39 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/ipch/AutoPCH/1e6342d9d2a23210/源.ipch b/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/ipch/AutoPCH/1e6342d9d2a23210/源.ipch new file mode 100644 index 0000000..923535c Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/.vs/10.5/v16/ipch/AutoPCH/1e6342d9d2a23210/源.ipch differ diff --git a/初试笔记/历年真题实现代码/10.5/10.5.sln b/初试笔记/历年真题实现代码/10.5/10.5.sln new file mode 100644 index 0000000..ea43f93 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/10.5.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "10.5", "10.5.vcxproj", "{B6000990-907E-414B-95EB-4B79F7BDF514}" +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 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Debug|x64.ActiveCfg = Debug|x64 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Debug|x64.Build.0 = Debug|x64 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Debug|x86.ActiveCfg = Debug|Win32 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Debug|x86.Build.0 = Debug|Win32 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Release|x64.ActiveCfg = Release|x64 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Release|x64.Build.0 = Release|x64 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Release|x86.ActiveCfg = Release|Win32 + {B6000990-907E-414B-95EB-4B79F7BDF514}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2498F046-74E0-4644-AB8A-4CEA93A7E1A8} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/10.5/10.5.vcxproj b/初试笔记/历年真题实现代码/10.5/10.5.vcxproj new file mode 100644 index 0000000..e141e53 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/10.5.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b6000990-907e-414b-95eb-4b79f7bdf514} + My105 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/10.5/10.5.vcxproj.filters b/初试笔记/历年真题实现代码/10.5/10.5.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/10.5.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/10.5/10.5.vcxproj.user b/初试笔记/历年真题实现代码/10.5/10.5.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/10.5.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.exe b/初试笔记/历年真题实现代码/10.5/Debug/10.5.exe new file mode 100644 index 0000000..2b2b9e2 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.exe differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.ilk b/初试笔记/历年真题实现代码/10.5/Debug/10.5.ilk new file mode 100644 index 0000000..4a70233 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.ilk differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.log b/初试笔记/历年真题实现代码/10.5/Debug/10.5.log new file mode 100644 index 0000000..2a1c76e --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/Debug/10.5.log @@ -0,0 +1,2 @@ + 源.cpp + 10.5.vcxproj -> E:\allcode\c\realqustion\10.5\Debug\10.5.exe diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.pdb b/初试笔记/历年真题实现代码/10.5/Debug/10.5.pdb new file mode 100644 index 0000000..135b4b0 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.pdb differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/10.5.lastbuildstate b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/10.5.lastbuildstate new file mode 100644 index 0000000..182827e --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/10.5.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\10.5\| diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.command.1.tlog new file mode 100644 index 0000000..59b0417 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d7db4f3 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..a8342f2 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.command.1.tlog new file mode 100644 index 0000000..dfdcf1f Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.read.1.tlog new file mode 100644 index 0000000..d8d16d3 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.write.1.tlog new file mode 100644 index 0000000..acebdc0 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/10.5.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/10.5.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/10.5/Debug/10.5.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..855ebfb --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/Debug/10.5.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\10.5\Debug\10.5.exe +E:\allcode\c\realqustion\10.5\Debug\10.5.pdb diff --git a/初试笔记/历年真题实现代码/10.5/Debug/vc142.idb b/初试笔记/历年真题实现代码/10.5/Debug/vc142.idb new file mode 100644 index 0000000..f884369 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/vc142.pdb b/初试笔记/历年真题实现代码/10.5/Debug/vc142.pdb new file mode 100644 index 0000000..b98c78c Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/10.5/Debug/源.obj b/初试笔记/历年真题实现代码/10.5/Debug/源.obj new file mode 100644 index 0000000..8ec8f22 Binary files /dev/null and b/初试笔记/历年真题实现代码/10.5/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/10.5/源.cpp b/初试笔记/历年真题实现代码/10.5/源.cpp new file mode 100644 index 0000000..56213ef --- /dev/null +++ b/初试笔记/历年真题实现代码/10.5/源.cpp @@ -0,0 +1,62 @@ +#include + +#define LISTSIZE 8 + +void move1(int num[], int length); +void move2(int num[], int len); + +int main(void) +{ + int num[] = { 2,9,4,6,7,8,3,2,5 }; + int len = sizeof(num) / sizeof(int); + move1(num, len); + for (int i = 0; i < len; i++) + printf("The %d number is %d\n", i + 1, num[i]); + printf("\n"); + move2(num, len); + for (int i = 0; i < len; i++) + printf("The %d number is %d\n", i+1,num[i]); + + return 0; +} + +void move1(int num[],int length) +{ + int i = 0, j = 1, temp; + while (1) + { + while (num[i] % 2 == 0) + i += 2; + while (num[j] % 2 == 1) + j += 2; + if (i > length || j >= length) + break; + else + { + temp = num[i]; + num[i] = num[j]; + num[j] = temp; + } + } +} +void move2(int num[], int len) +{ + int d = 0, s = 1, temp; + for (int i = 0; i < len; i++) + { + if (num[i] % 2 == 0) + { + temp = num[d]; + num[d] = num[s]; + d += 2; + } + else + { + temp = num[s]; + num[s] = num[d]; + s += 2; + } + if (d > len || s > len) + break; + } +} \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/.suo b/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/.suo new file mode 100644 index 0000000..c375602 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/Browse.VC.db b/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/Browse.VC.db new file mode 100644 index 0000000..1a71567 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/ipch/AutoPCH/5747fbc63071de3c/源.ipch b/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/ipch/AutoPCH/5747fbc63071de3c/源.ipch new file mode 100644 index 0000000..1c7122d Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/.vs/11.4/v16/ipch/AutoPCH/5747fbc63071de3c/源.ipch differ diff --git a/初试笔记/历年真题实现代码/11.4/11.4.sln b/初试笔记/历年真题实现代码/11.4/11.4.sln new file mode 100644 index 0000000..1343d0d --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/11.4.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "11.4", "11.4.vcxproj", "{04E7E42D-3A5F-4293-B5F7-3D52D1A02832}" +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 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Debug|x64.ActiveCfg = Debug|x64 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Debug|x64.Build.0 = Debug|x64 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Debug|x86.ActiveCfg = Debug|Win32 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Debug|x86.Build.0 = Debug|Win32 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Release|x64.ActiveCfg = Release|x64 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Release|x64.Build.0 = Release|x64 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Release|x86.ActiveCfg = Release|Win32 + {04E7E42D-3A5F-4293-B5F7-3D52D1A02832}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E5EC274B-4EDC-491D-9DFE-4409EF437A63} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/11.4/11.4.vcxproj b/初试笔记/历年真题实现代码/11.4/11.4.vcxproj new file mode 100644 index 0000000..7cc2ae5 --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/11.4.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {04e7e42d-3a5f-4293-b5f7-3d52d1a02832} + My114 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/11.4/11.4.vcxproj.filters b/初试笔记/历年真题实现代码/11.4/11.4.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/11.4.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/11.4/11.4.vcxproj.user b/初试笔记/历年真题实现代码/11.4/11.4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/11.4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.exe b/初试笔记/历年真题实现代码/11.4/Debug/11.4.exe new file mode 100644 index 0000000..f4cf679 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.exe differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.ilk b/初试笔记/历年真题实现代码/11.4/Debug/11.4.ilk new file mode 100644 index 0000000..d95fdbe Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.ilk differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.log b/初试笔记/历年真题实现代码/11.4/Debug/11.4.log new file mode 100644 index 0000000..ddfe816 --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/Debug/11.4.log @@ -0,0 +1,3 @@ + 源.cpp +E:\allcode\c\realqustion\11.4\源.cpp(50,16): warning C4101: “p”: 未引用的局部变量 + 11.4.vcxproj -> E:\allcode\c\realqustion\11.4\Debug\11.4.exe diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.pdb b/初试笔记/历年真题实现代码/11.4/Debug/11.4.pdb new file mode 100644 index 0000000..19984bc Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.pdb differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/11.4.lastbuildstate b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/11.4.lastbuildstate new file mode 100644 index 0000000..9b6e56b --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/11.4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\11.4\| diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..82561c0 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..9e71cb2 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ddcb607 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.command.1.tlog new file mode 100644 index 0000000..ecf46bf Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.read.1.tlog new file mode 100644 index 0000000..4579af3 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.write.1.tlog new file mode 100644 index 0000000..dd4121e Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/11.4.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/11.4.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/11.4/Debug/11.4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..dbe871a --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/Debug/11.4.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\11.4\Debug\11.4.exe +E:\allcode\c\realqustion\11.4\Debug\11.4.pdb diff --git a/初试笔记/历年真题实现代码/11.4/Debug/vc142.idb b/初试笔记/历年真题实现代码/11.4/Debug/vc142.idb new file mode 100644 index 0000000..69b33c0 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/vc142.pdb b/初试笔记/历年真题实现代码/11.4/Debug/vc142.pdb new file mode 100644 index 0000000..ca31783 Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/11.4/Debug/源.obj b/初试笔记/历年真题实现代码/11.4/Debug/源.obj new file mode 100644 index 0000000..989130e Binary files /dev/null and b/初试笔记/历年真题实现代码/11.4/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/11.4/源.cpp b/初试笔记/历年真题实现代码/11.4/源.cpp new file mode 100644 index 0000000..8436b13 --- /dev/null +++ b/初试笔记/历年真题实现代码/11.4/源.cpp @@ -0,0 +1,86 @@ +#include +#include +typedef struct LNode { + int data; + LNode* next; +}LNode, * Linklist; +/*ϰܵͷ巨 βָ벻NULL*/ +void split1(Linklist L, Linklist& L1, Linklist& L2) { + if (L) + { + LNode* p; + if (L->data % 2 == 1) + { + p = L; + L = L->next; + p->next = L1; + L1 = p; + } + else { + p = L; + L = L->next; + p->next = L2; + L2 = p; + } + split1(L, L1, L2); + } +} +/*Լβ巨 ʱȷ*/ +void split2(LNode* p, Linklist& e, Linklist& s) +{ + if (p == NULL) { + e->next = NULL; + s->next = NULL; + } + else { + if (p->data % 2 == 0) { + e->next = p; + e = p; + } + else { + s->next = p; + s = p; + } + split2(p->next, e, s); + } +} + +int main(void) { + Linklist L = (Linklist)malloc(sizeof(LNode)); + L->data = 5; + LNode* h = L,*p,*L1,*L2,*q; + /*ѵĵ*/ + for (int i = 0; i < 5; i++) + { + Linklist p = (Linklist)malloc(sizeof(LNode)); + p->data = i; + L->next = p; + L = L->next; + } + if (L->next == NULL) + printf("yes\n"); + L->next = NULL; + /*12*/ + //split1(h, L1, L2); + L1= (Linklist)malloc(sizeof(LNode)); + L2=(Linklist)malloc(sizeof(LNode)); + LNode* e = L1, * s = L2; + split2(h, e, s); + /* ӡѵL1L2Ա*/ + q = L1->next; + while (q!=NULL) { + printf("L1 num is %d\n", q->data); + L = q; + q = q->next; + free(L); + } + q = L2->next; + while (q != NULL) { + printf("L2 num is %d\n", q->data); + L = q; + q = q->next; + free(L); + } + return 0; +} + diff --git a/初试笔记/历年真题实现代码/12.3/.vs/12.3/v16/.suo b/初试笔记/历年真题实现代码/12.3/.vs/12.3/v16/.suo new file mode 100644 index 0000000..c143f13 Binary files /dev/null and b/初试笔记/历年真题实现代码/12.3/.vs/12.3/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/12.3/.vs/12.3/v16/Browse.VC.db b/初试笔记/历年真题实现代码/12.3/.vs/12.3/v16/Browse.VC.db new file mode 100644 index 0000000..841b20f Binary files /dev/null and b/初试笔记/历年真题实现代码/12.3/.vs/12.3/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/12.3/12.3.sln b/初试笔记/历年真题实现代码/12.3/12.3.sln new file mode 100644 index 0000000..d930d14 --- /dev/null +++ b/初试笔记/历年真题实现代码/12.3/12.3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "12.3", "12.3.vcxproj", "{E1FDB3B2-6A58-49E1-B363-861337EF79B8}" +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 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Debug|x64.ActiveCfg = Debug|x64 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Debug|x64.Build.0 = Debug|x64 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Debug|x86.ActiveCfg = Debug|Win32 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Debug|x86.Build.0 = Debug|Win32 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Release|x64.ActiveCfg = Release|x64 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Release|x64.Build.0 = Release|x64 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Release|x86.ActiveCfg = Release|Win32 + {E1FDB3B2-6A58-49E1-B363-861337EF79B8}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0BD46930-B81C-4C85-8C5A-B020EB7E1996} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/12.3/12.3.vcxproj b/初试笔记/历年真题实现代码/12.3/12.3.vcxproj new file mode 100644 index 0000000..2aec6b2 --- /dev/null +++ b/初试笔记/历年真题实现代码/12.3/12.3.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + 16.0 + Win32Proj + {e1fdb3b2-6a58-49e1-b363-861337ef79b8} + My123 + 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/初试笔记/历年真题实现代码/12.3/12.3.vcxproj.filters b/初试笔记/历年真题实现代码/12.3/12.3.vcxproj.filters new file mode 100644 index 0000000..0213f34 --- /dev/null +++ b/初试笔记/历年真题实现代码/12.3/12.3.vcxproj.filters @@ -0,0 +1,17 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/12.3/12.3.vcxproj.user b/初试笔记/历年真题实现代码/12.3/12.3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/12.3/12.3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/12.3/源.cpp b/初试笔记/历年真题实现代码/12.3/源.cpp new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/.suo b/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/.suo new file mode 100644 index 0000000..37eaa57 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/Browse.VC.db b/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/Browse.VC.db new file mode 100644 index 0000000..7839747 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/ipch/AutoPCH/891b33cff0d5e59e/源.ipch b/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/ipch/AutoPCH/891b33cff0d5e59e/源.ipch new file mode 100644 index 0000000..86524af Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/.vs/14.3/v16/ipch/AutoPCH/891b33cff0d5e59e/源.ipch differ diff --git a/初试笔记/历年真题实现代码/14.3/14.3.sln b/初试笔记/历年真题实现代码/14.3/14.3.sln new file mode 100644 index 0000000..06f5593 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/14.3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "14.3", "14.3.vcxproj", "{600105FB-1F1C-43BD-9DEF-9D0190867FDA}" +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 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Debug|x64.ActiveCfg = Debug|x64 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Debug|x64.Build.0 = Debug|x64 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Debug|x86.ActiveCfg = Debug|Win32 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Debug|x86.Build.0 = Debug|Win32 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Release|x64.ActiveCfg = Release|x64 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Release|x64.Build.0 = Release|x64 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Release|x86.ActiveCfg = Release|Win32 + {600105FB-1F1C-43BD-9DEF-9D0190867FDA}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0FF5A0F3-C3F7-4414-B7D5-3D9D736645E0} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/14.3/14.3.vcxproj b/初试笔记/历年真题实现代码/14.3/14.3.vcxproj new file mode 100644 index 0000000..f3f4975 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/14.3.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {600105fb-1f1c-43bd-9def-9d0190867fda} + My143 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/14.3/14.3.vcxproj.filters b/初试笔记/历年真题实现代码/14.3/14.3.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/14.3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/14.3/14.3.vcxproj.user b/初试笔记/历年真题实现代码/14.3/14.3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/14.3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.exe b/初试笔记/历年真题实现代码/14.3/Debug/14.3.exe new file mode 100644 index 0000000..95026c0 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.exe differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.ilk b/初试笔记/历年真题实现代码/14.3/Debug/14.3.ilk new file mode 100644 index 0000000..a88ea3d Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.ilk differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.log b/初试笔记/历年真题实现代码/14.3/Debug/14.3.log new file mode 100644 index 0000000..db72261 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/Debug/14.3.log @@ -0,0 +1,2 @@ + 源.cpp + 14.3.vcxproj -> E:\allcode\c\realqustion\14.3\Debug\14.3.exe diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.pdb b/初试笔记/历年真题实现代码/14.3/Debug/14.3.pdb new file mode 100644 index 0000000..2af19ff Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.pdb differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/14.3.lastbuildstate b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/14.3.lastbuildstate new file mode 100644 index 0000000..e83144d --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/14.3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\14.3\| diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..420a4f9 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8de50a7 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..7039bc1 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.command.1.tlog new file mode 100644 index 0000000..a98d376 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.read.1.tlog new file mode 100644 index 0000000..efb03b2 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.write.1.tlog new file mode 100644 index 0000000..453ceb3 Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/14.3.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/14.3.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/14.3/Debug/14.3.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..82b10d9 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/Debug/14.3.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\14.3\Debug\14.3.exe +E:\allcode\c\realqustion\14.3\Debug\14.3.pdb diff --git a/初试笔记/历年真题实现代码/14.3/Debug/vc142.idb b/初试笔记/历年真题实现代码/14.3/Debug/vc142.idb new file mode 100644 index 0000000..413670f Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/vc142.pdb b/初试笔记/历年真题实现代码/14.3/Debug/vc142.pdb new file mode 100644 index 0000000..0f894fb Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/14.3/Debug/源.obj b/初试笔记/历年真题实现代码/14.3/Debug/源.obj new file mode 100644 index 0000000..212d76b Binary files /dev/null and b/初试笔记/历年真题实现代码/14.3/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/14.3/源.cpp b/初试笔记/历年真题实现代码/14.3/源.cpp new file mode 100644 index 0000000..ac5a538 --- /dev/null +++ b/初试笔记/历年真题实现代码/14.3/源.cpp @@ -0,0 +1,84 @@ +#include +#include +#include +#define Max 100 +bool Isprime(int x); +//void m_sort(int a[], int len); + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +int main(void) +{ + int a[Max]; + int x; + Linklist head = (Linklist)malloc(sizeof(Lnode)); + head->next = NULL; + printf("Please input a number:\n"); + scanf_s("%d", &x); + int i = 2, count = 0; + while (i <= x) { + if (Isprime(i) && x % i == 0) { + a[count++] = i; + x = x / i; + } + else + i++; + } + printf("νΪ\n"); + for (i = 0; i < count; i++) + { + printf("%d\n", a[i]); + } + int len = sizeof(a) / sizeof(int); + printf("%d %d\n", count, len); + /* + m_sort(a,count); + printf("νΪ\n"); + for (i = 0; i < count; i++) + { + printf("%d\n", a[i]); + } + */ + Lnode* p = head; + for (i = 0; i < count; i++) { + Lnode* q = (Linklist)malloc(sizeof(Lnode)); + q->data = a[i]; + q->next = p->next; + p->next = q; + } + p = head->next; + Lnode* r; + printf("սΪ\n"); + while (p) { + printf("%d\n", p->data); + r= p; + p = r->next; + free(r); + + } + return 0; +} + +bool Isprime(int x) { + if (x <= 1) + return false; + for (int i = 2; i < sqrt(x); i++) + if (x % i == 0) + return false; + return true; +} +/* +void m_sort(int a[], int len) { + for (int i = 0; i < len; i++) { + for(int j=0;j + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {a3327df5-e075-4ee4-8a9c-7e847f348c98} + My164 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/16.4/16.4.vcxproj.filters b/初试笔记/历年真题实现代码/16.4/16.4.vcxproj.filters new file mode 100644 index 0000000..a153a06 --- /dev/null +++ b/初试笔记/历年真题实现代码/16.4/16.4.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/16.4/16.4.vcxproj.user b/初试笔记/历年真题实现代码/16.4/16.4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/16.4/16.4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.exe b/初试笔记/历年真题实现代码/16.4/Debug/16.4.exe new file mode 100644 index 0000000..c520b8c Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.exe differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.ilk b/初试笔记/历年真题实现代码/16.4/Debug/16.4.ilk new file mode 100644 index 0000000..eec34c7 Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.ilk differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.log b/初试笔记/历年真题实现代码/16.4/Debug/16.4.log new file mode 100644 index 0000000..c689416 --- /dev/null +++ b/初试笔记/历年真题实现代码/16.4/Debug/16.4.log @@ -0,0 +1,2 @@ + 源.c + 16.4.vcxproj -> E:\allcode\c\realqustion\16.4\Debug\16.4.exe diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.pdb b/初试笔记/历年真题实现代码/16.4/Debug/16.4.pdb new file mode 100644 index 0000000..237b68f Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.pdb differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/16.4.lastbuildstate b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/16.4.lastbuildstate new file mode 100644 index 0000000..88ea6a5 --- /dev/null +++ b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/16.4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\16.4\| diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..6dda4ae Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4a015fb Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..9e51714 Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.command.1.tlog new file mode 100644 index 0000000..01b2393 Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.read.1.tlog new file mode 100644 index 0000000..b2bc582 Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.write.1.tlog new file mode 100644 index 0000000..ee9884f Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/16.4.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/16.4.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/16.4/Debug/16.4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..8d8627a --- /dev/null +++ b/初试笔记/历年真题实现代码/16.4/Debug/16.4.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\16.4\Debug\16.4.exe +E:\allcode\c\realqustion\16.4\Debug\16.4.pdb diff --git a/初试笔记/历年真题实现代码/16.4/Debug/vc142.idb b/初试笔记/历年真题实现代码/16.4/Debug/vc142.idb new file mode 100644 index 0000000..19eeb32 Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/vc142.pdb b/初试笔记/历年真题实现代码/16.4/Debug/vc142.pdb new file mode 100644 index 0000000..890c164 Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/16.4/Debug/源.obj b/初试笔记/历年真题实现代码/16.4/Debug/源.obj new file mode 100644 index 0000000..3f22f5c Binary files /dev/null and b/初试笔记/历年真题实现代码/16.4/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/16.4/源.c b/初试笔记/历年真题实现代码/16.4/源.c new file mode 100644 index 0000000..ac501ff --- /dev/null +++ b/初试笔记/历年真题实现代码/16.4/源.c @@ -0,0 +1,29 @@ +#include + +int Findmin(int A[], int len); + +main() +{ + int A[] = { 1,2,-2,5,-6,8,-4,-3 }; + int len = sizeof(A) / sizeof(int); + printf("%d\n", len); + printf("The minest patch is %d\n", Findmin(A, len)); +} +int Findmin(int A[], int len) { + int min = 0; + for (int i = 0; i < len; i++) + if (A[i] < min) + min = A[i]; + if (min >= 0) + return 0; + int sum = 0; + for (int i = 0; i < len; i++) + { + sum += A[i]; + if (sum < min) + min = sum; + if (sum > 0) + sum = 0; + } + return min; +} \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/.suo b/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/.suo new file mode 100644 index 0000000..fcc7009 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/Browse.VC.db b/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/Browse.VC.db new file mode 100644 index 0000000..4804d5d Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/ipch/AutoPCH/2c7007235a90a9cd/源.ipch b/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/ipch/AutoPCH/2c7007235a90a9cd/源.ipch new file mode 100644 index 0000000..d486d55 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/.vs/17.3/v16/ipch/AutoPCH/2c7007235a90a9cd/源.ipch differ diff --git a/初试笔记/历年真题实现代码/17.3/17.3.sln b/初试笔记/历年真题实现代码/17.3/17.3.sln new file mode 100644 index 0000000..556669c --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/17.3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "17.3", "17.3.vcxproj", "{28BAB879-B6E5-45B6-8D12-72AEE786578F}" +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 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Debug|x64.ActiveCfg = Debug|x64 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Debug|x64.Build.0 = Debug|x64 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Debug|x86.ActiveCfg = Debug|Win32 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Debug|x86.Build.0 = Debug|Win32 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Release|x64.ActiveCfg = Release|x64 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Release|x64.Build.0 = Release|x64 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Release|x86.ActiveCfg = Release|Win32 + {28BAB879-B6E5-45B6-8D12-72AEE786578F}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {64012114-B602-4062-B4F6-BB0AE7D4AAD6} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/17.3/17.3.vcxproj b/初试笔记/历年真题实现代码/17.3/17.3.vcxproj new file mode 100644 index 0000000..5609206 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/17.3.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + 16.0 + Win32Proj + {28bab879-b6e5-45b6-8d12-72aee786578f} + My173 + 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 + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/17.3/17.3.vcxproj.filters b/初试笔记/历年真题实现代码/17.3/17.3.vcxproj.filters new file mode 100644 index 0000000..a153a06 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/17.3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/17.3/17.3.vcxproj.user b/初试笔记/历年真题实现代码/17.3/17.3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/17.3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.exe b/初试笔记/历年真题实现代码/17.3/Debug/17.3.exe new file mode 100644 index 0000000..bb6c670 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.exe differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.ilk b/初试笔记/历年真题实现代码/17.3/Debug/17.3.ilk new file mode 100644 index 0000000..553acf6 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.ilk differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.log b/初试笔记/历年真题实现代码/17.3/Debug/17.3.log new file mode 100644 index 0000000..a1f9780 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/Debug/17.3.log @@ -0,0 +1,2 @@ + 源.c + 17.3.vcxproj -> E:\allcode\c\realqustion\17.3\Debug\17.3.exe diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.pdb b/初试笔记/历年真题实现代码/17.3/Debug/17.3.pdb new file mode 100644 index 0000000..8620df5 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.pdb differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/17.3.lastbuildstate b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/17.3.lastbuildstate new file mode 100644 index 0000000..ae1be45 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/17.3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\17.3\| diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..7b77697 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5d0216e Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..a79d350 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.command.1.tlog new file mode 100644 index 0000000..c697e42 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.read.1.tlog new file mode 100644 index 0000000..821a3ee Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.write.1.tlog new file mode 100644 index 0000000..42969a6 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/17.3.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/17.3.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/17.3/Debug/17.3.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..5d9f6e2 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/Debug/17.3.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\17.3\Debug\17.3.exe +E:\allcode\c\realqustion\17.3\Debug\17.3.pdb diff --git a/初试笔记/历年真题实现代码/17.3/Debug/vc142.idb b/初试笔记/历年真题实现代码/17.3/Debug/vc142.idb new file mode 100644 index 0000000..1ba60d1 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/vc142.pdb b/初试笔记/历年真题实现代码/17.3/Debug/vc142.pdb new file mode 100644 index 0000000..1c15556 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/17.3/Debug/源.obj b/初试笔记/历年真题实现代码/17.3/Debug/源.obj new file mode 100644 index 0000000..f4a16a3 Binary files /dev/null and b/初试笔记/历年真题实现代码/17.3/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/17.3/源.c b/初试笔记/历年真题实现代码/17.3/源.c new file mode 100644 index 0000000..8e4e831 --- /dev/null +++ b/初试笔记/历年真题实现代码/17.3/源.c @@ -0,0 +1,59 @@ +#include +#define MAXSIZE 100 +/*mine*/ +int AccordNum(int n) +{ + int temp = n; + if (n % 2 == 0) + n /= 2; + if (n % 3 == 0) + n /= 3; + if (n % 5 == 0) + n /= 5; + if (n == 1) + return 1; + else if (n == temp) + return 0; + else + return AccordNum(n); +} +/*answer*/ +int Meet(int n) +{ + if (n == 1) + return 1; + else if (n % 2 == 0) + return Meet(n / 2); + else if (n % 3 == 0) + return Meet(n / 3); + else if (n % 5 == 0) + return Meet(n / 5); + else + return 0; +} +//main + main() + { + int num1[MAXSIZE]; + int num2[MAXSIZE]; + int i = 0; + int n = 1; + while (i < MAXSIZE) + { + if (AccordNum(n)) + num1[i++] = n; + n++; + } + int j = 0; + n = 1; + while (j < MAXSIZE) + { + if (Meet(n)) + num2[j++] = n; + n++; + } + for (i = 0; i < MAXSIZE; i++) + printf("%d %d\n", num1[i],num2[i]); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/17.3/源.cpp b/初试笔记/历年真题实现代码/17.3/源.cpp new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/.suo b/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/.suo new file mode 100644 index 0000000..b44f826 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/Browse.VC.db b/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/Browse.VC.db new file mode 100644 index 0000000..879b4ca Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/ipch/AutoPCH/24d7a383476382f2/源.ipch b/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/ipch/AutoPCH/24d7a383476382f2/源.ipch new file mode 100644 index 0000000..d06072f Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/.vs/18.3/v16/ipch/AutoPCH/24d7a383476382f2/源.ipch differ diff --git a/初试笔记/历年真题实现代码/18.3/18.3.sln b/初试笔记/历年真题实现代码/18.3/18.3.sln new file mode 100644 index 0000000..c088bc6 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/18.3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "18.3", "18.3.vcxproj", "{E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}" +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 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Debug|x64.ActiveCfg = Debug|x64 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Debug|x64.Build.0 = Debug|x64 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Debug|x86.ActiveCfg = Debug|Win32 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Debug|x86.Build.0 = Debug|Win32 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Release|x64.ActiveCfg = Release|x64 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Release|x64.Build.0 = Release|x64 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Release|x86.ActiveCfg = Release|Win32 + {E28515BC-EFA4-41E3-B105-F8C6DAB97B1A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1A82A068-59A4-497D-B049-F76AB7DA87C7} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/18.3/18.3.vcxproj b/初试笔记/历年真题实现代码/18.3/18.3.vcxproj new file mode 100644 index 0000000..e110f34 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/18.3.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {e28515bc-efa4-41e3-b105-f8c6dab97b1a} + My183 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/18.3/18.3.vcxproj.filters b/初试笔记/历年真题实现代码/18.3/18.3.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/18.3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/18.3/18.3.vcxproj.user b/初试笔记/历年真题实现代码/18.3/18.3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/18.3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.exe b/初试笔记/历年真题实现代码/18.3/Debug/18.3.exe new file mode 100644 index 0000000..f9e8dac Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.exe differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.ilk b/初试笔记/历年真题实现代码/18.3/Debug/18.3.ilk new file mode 100644 index 0000000..6c5d976 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.ilk differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.log b/初试笔记/历年真题实现代码/18.3/Debug/18.3.log new file mode 100644 index 0000000..819eb44 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/Debug/18.3.log @@ -0,0 +1,2 @@ + 源.cpp + 18.3.vcxproj -> E:\allcode\c\realqustion\18.3\Debug\18.3.exe diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.pdb b/初试笔记/历年真题实现代码/18.3/Debug/18.3.pdb new file mode 100644 index 0000000..0226c24 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.pdb differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/18.3.lastbuildstate b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/18.3.lastbuildstate new file mode 100644 index 0000000..2dfda4d --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/18.3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\18.3\| diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..58c6875 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..88c34b5 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..cd90afc Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.command.1.tlog new file mode 100644 index 0000000..10aa6ab Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.read.1.tlog new file mode 100644 index 0000000..e2c72bf Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.write.1.tlog new file mode 100644 index 0000000..6147a7c Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/18.3.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/18.3.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/18.3/Debug/18.3.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..6d1a779 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/Debug/18.3.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\18.3\Debug\18.3.exe +E:\allcode\c\realqustion\18.3\Debug\18.3.pdb diff --git a/初试笔记/历年真题实现代码/18.3/Debug/vc142.idb b/初试笔记/历年真题实现代码/18.3/Debug/vc142.idb new file mode 100644 index 0000000..877e783 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/vc142.pdb b/初试笔记/历年真题实现代码/18.3/Debug/vc142.pdb new file mode 100644 index 0000000..5e5f6b2 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/18.3/Debug/源.obj b/初试笔记/历年真题实现代码/18.3/Debug/源.obj new file mode 100644 index 0000000..e61cbc5 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.3/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/18.3/源.cpp b/初试笔记/历年真题实现代码/18.3/源.cpp new file mode 100644 index 0000000..408187a --- /dev/null +++ b/初试笔记/历年真题实现代码/18.3/源.cpp @@ -0,0 +1,76 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +bool Accordlist(Linklist L) +{ + Lnode* p = L -> next; + while (p && p->data % 2 == 1) + p = p->next; + while (p) { + + if (p->data % 2 ==1) + return false; + p = p->next; + } + return true; +} +/*answer*/ +bool Iseven(Linklist head) { + Lnode* p = head; + if (p == NULL) + return true; + while (p) + { + if ((p->data) % 2 == 1) + return false; + p = p->next; + } + return true; +} +bool Isorder(Linklist head) +{ + Lnode* p = head->next; + if (p == NULL) + return true; + while (p) { + if ((p->data) % 2 == 0) + return Iseven(p); + p = p->next; + } + return true; +} + +int main(void) { + Lnode* L = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L; + int num[] = { 1,3,4,8,6,7}; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + p = L->next; + while (p) { + printf("%d\n", p->data); + p = p->next; + } + if (Accordlist(L)==1) + printf("\n"); + else + printf("false\n"); + + if (Isorder(L)) + printf("yes\n"); + else + printf("no\n"); + return 0; +} \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/.suo b/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/.suo new file mode 100644 index 0000000..83abd7d Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/Browse.VC.db b/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/Browse.VC.db new file mode 100644 index 0000000..d6b716a Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/ipch/AutoPCH/ba1ada3c4d893081/源.ipch b/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/ipch/AutoPCH/ba1ada3c4d893081/源.ipch new file mode 100644 index 0000000..c5a7fda Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/.vs/18.4/v16/ipch/AutoPCH/ba1ada3c4d893081/源.ipch differ diff --git a/初试笔记/历年真题实现代码/18.4/18.4.sln b/初试笔记/历年真题实现代码/18.4/18.4.sln new file mode 100644 index 0000000..10ce14f --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/18.4.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "18.4", "18.4.vcxproj", "{11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}" +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 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Debug|x64.ActiveCfg = Debug|x64 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Debug|x64.Build.0 = Debug|x64 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Debug|x86.ActiveCfg = Debug|Win32 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Debug|x86.Build.0 = Debug|Win32 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Release|x64.ActiveCfg = Release|x64 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Release|x64.Build.0 = Release|x64 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Release|x86.ActiveCfg = Release|Win32 + {11E0FCBA-FD1B-47EF-86DF-E9C602F12C69}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2DBA4267-3292-47E5-82C1-ADEDC5885633} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/18.4/18.4.vcxproj b/初试笔记/历年真题实现代码/18.4/18.4.vcxproj new file mode 100644 index 0000000..26fa541 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/18.4.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {11e0fcba-fd1b-47ef-86df-e9c602f12c69} + My184 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/18.4/18.4.vcxproj.filters b/初试笔记/历年真题实现代码/18.4/18.4.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/18.4.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/18.4/18.4.vcxproj.user b/初试笔记/历年真题实现代码/18.4/18.4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/18.4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.exe b/初试笔记/历年真题实现代码/18.4/Debug/18.4.exe new file mode 100644 index 0000000..951f96e Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.exe differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.ilk b/初试笔记/历年真题实现代码/18.4/Debug/18.4.ilk new file mode 100644 index 0000000..32cad94 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.ilk differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.log b/初试笔记/历年真题实现代码/18.4/Debug/18.4.log new file mode 100644 index 0000000..11b1e36 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/Debug/18.4.log @@ -0,0 +1,2 @@ + 源.cpp + 18.4.vcxproj -> E:\allcode\c\realqustion\18.4\Debug\18.4.exe diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.pdb b/初试笔记/历年真题实现代码/18.4/Debug/18.4.pdb new file mode 100644 index 0000000..63bd065 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.pdb differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/18.4.lastbuildstate b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/18.4.lastbuildstate new file mode 100644 index 0000000..4cb54ff --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/18.4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\18.4\| diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d912c4e Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8178189 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ddf5f56 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.command.1.tlog new file mode 100644 index 0000000..1c927c7 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.read.1.tlog new file mode 100644 index 0000000..b59b45c Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.write.1.tlog new file mode 100644 index 0000000..85c9ae5 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/18.4.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/18.4.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/18.4/Debug/18.4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b379796 --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/Debug/18.4.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\18.4\Debug\18.4.exe +E:\allcode\c\realqustion\18.4\Debug\18.4.pdb diff --git a/初试笔记/历年真题实现代码/18.4/Debug/vc142.idb b/初试笔记/历年真题实现代码/18.4/Debug/vc142.idb new file mode 100644 index 0000000..1baff34 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/vc142.pdb b/初试笔记/历年真题实现代码/18.4/Debug/vc142.pdb new file mode 100644 index 0000000..da10241 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/18.4/Debug/源.obj b/初试笔记/历年真题实现代码/18.4/Debug/源.obj new file mode 100644 index 0000000..4197217 Binary files /dev/null and b/初试笔记/历年真题实现代码/18.4/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/18.4/源.cpp b/初试笔记/历年真题实现代码/18.4/源.cpp new file mode 100644 index 0000000..d039fdb --- /dev/null +++ b/初试笔记/历年真题实现代码/18.4/源.cpp @@ -0,0 +1,101 @@ +#include +#include +#include +#define Max 20 +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +int Givesize(BiTree& T); +void Creattree(BiTree& T, int A[], int n, int len); +void Preorder(BiTree T); +void Creatsize(BiTree T); +int NodeNum(BiTree T); + +int main(void) { + + int num[Max]; + for (int i = 0; i < Max; i++) + { + num[i] = i; + } + BiTree T; + //clock_t start, finish; + //double duration; + Creattree(T, num, 0,Max); + Creatsize(T); + Preorder(T); + printf("\n"); + //start = clock(); + Givesize(T); + //finish = clock(); + Preorder(T); + + //duration = (double)(finish - start) / CLOCKS_PER_SEC; + //printf("\n%f seconds\n", duration); + return 0; +} +/*givesize*///failed +int Givesize(BiTree& T) +{ + if (T==NULL) + return 0; + else + { + return 1 + T->lchild->size + T->rchild->size; + T->size=Givesize(T->lchild)+Givesize(T->rchild); + } + /* + if (T->lchild) + { + T->size++; + Givesize(T->lchild); + T->size += T->lchild->size; + } + if (T->rchild) + { + T->size++; + Givesize(T->rchild); + T->size += T->rchild->size; + } + */ +} +/*creattree*/ +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >=len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +/*manifest tree*/ +void Preorder(BiTree T) { + if (T) + { + printf("%d %d ", T->data, T->size); + Preorder(T->lchild); + Preorder(T->rchild); + } +} +/*answer*/ +int NodeNum(BiTree T) +{ + if (T == NULL) + return 0; + else + return 1 + NodeNum(T->lchild) + NodeNum(T->rchild); +} +void Creatsize(BiTree T) +{ + if (T == NULL) + return; + T->size = NodeNum(T); + Creatsize(T->lchild); + Creatsize(T->rchild); + return; +} \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/18.4/源1.cpp b/初试笔记/历年真题实现代码/18.4/源1.cpp new file mode 100644 index 0000000..e69de29 diff --git a/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/.suo b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/.suo new file mode 100644 index 0000000..8cd1efa Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/.suo differ diff --git a/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/Browse.VC.db b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/Browse.VC.db new file mode 100644 index 0000000..a4ed6e6 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/Browse.VC.db differ diff --git a/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/ipch/AutoPCH/65e9fda08c8fdfc7/源.ipch b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/ipch/AutoPCH/65e9fda08c8fdfc7/源.ipch new file mode 100644 index 0000000..3b8f0b4 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/ipch/AutoPCH/65e9fda08c8fdfc7/源.ipch differ diff --git a/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/ipch/AutoPCH/bb7b6e79d57c05bf/源.ipch b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/ipch/AutoPCH/bb7b6e79d57c05bf/源.ipch new file mode 100644 index 0000000..87541ba Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/.vs/19.3/v16/ipch/AutoPCH/bb7b6e79d57c05bf/源.ipch differ diff --git a/初试笔记/历年真题实现代码/19.3/19.3.sln b/初试笔记/历年真题实现代码/19.3/19.3.sln new file mode 100644 index 0000000..ffcc655 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/19.3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "19.3", "19.3.vcxproj", "{F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}" +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 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Debug|x64.ActiveCfg = Debug|x64 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Debug|x64.Build.0 = Debug|x64 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Debug|x86.ActiveCfg = Debug|Win32 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Debug|x86.Build.0 = Debug|Win32 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Release|x64.ActiveCfg = Release|x64 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Release|x64.Build.0 = Release|x64 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Release|x86.ActiveCfg = Release|Win32 + {F3B2CE1D-5C9D-49D7-B246-F7E6FDE1DA42}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {24004DC0-70AA-4518-B72F-FB84C768F3F7} + EndGlobalSection +EndGlobal diff --git a/初试笔记/历年真题实现代码/19.3/19.3.vcxproj b/初试笔记/历年真题实现代码/19.3/19.3.vcxproj new file mode 100644 index 0000000..539edc5 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/19.3.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + 16.0 + Win32Proj + {f3b2ce1d-5c9d-49d7-b246-f7e6fde1da42} + My193 + 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 + + + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/19.3/19.3.vcxproj.filters b/初试笔记/历年真题实现代码/19.3/19.3.vcxproj.filters new file mode 100644 index 0000000..2934970 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/19.3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/历年真题实现代码/19.3/19.3.vcxproj.user b/初试笔记/历年真题实现代码/19.3/19.3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/19.3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.exe b/初试笔记/历年真题实现代码/19.3/Debug/19.3.exe new file mode 100644 index 0000000..ccd6be7 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.exe differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.ilk b/初试笔记/历年真题实现代码/19.3/Debug/19.3.ilk new file mode 100644 index 0000000..f97d8d6 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.ilk differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.log b/初试笔记/历年真题实现代码/19.3/Debug/19.3.log new file mode 100644 index 0000000..4ff6e02 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/Debug/19.3.log @@ -0,0 +1,2 @@ + 源.cpp + 19.3.vcxproj -> E:\allcode\c\realqustion\19.3\Debug\19.3.exe diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.pdb b/初试笔记/历年真题实现代码/19.3/Debug/19.3.pdb new file mode 100644 index 0000000..f0f43fe Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.pdb differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/19.3.lastbuildstate b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/19.3.lastbuildstate new file mode 100644 index 0000000..ef081eb --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/19.3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\realqustion\19.3\| diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.command.1.tlog b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d9b4e06 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.read.1.tlog b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..6b32124 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.write.1.tlog b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..d449c52 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/CL.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.command.1.tlog b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.command.1.tlog new file mode 100644 index 0000000..7ef46ca Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.command.1.tlog differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.read.1.tlog b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.read.1.tlog new file mode 100644 index 0000000..278f190 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.read.1.tlog differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.write.1.tlog b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.write.1.tlog new file mode 100644 index 0000000..2c27c13 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/19.3.tlog/link.write.1.tlog differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/19.3.vcxproj.FileListAbsolute.txt b/初试笔记/历年真题实现代码/19.3/Debug/19.3.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..523e8b7 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/Debug/19.3.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\realqustion\19.3\Debug\19.3.exe +E:\allcode\c\realqustion\19.3\Debug\19.3.pdb diff --git a/初试笔记/历年真题实现代码/19.3/Debug/vc142.idb b/初试笔记/历年真题实现代码/19.3/Debug/vc142.idb new file mode 100644 index 0000000..5aded08 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/vc142.idb differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/vc142.pdb b/初试笔记/历年真题实现代码/19.3/Debug/vc142.pdb new file mode 100644 index 0000000..6883e6f Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/vc142.pdb differ diff --git a/初试笔记/历年真题实现代码/19.3/Debug/源.obj b/初试笔记/历年真题实现代码/19.3/Debug/源.obj new file mode 100644 index 0000000..a653ec5 Binary files /dev/null and b/初试笔记/历年真题实现代码/19.3/Debug/源.obj differ diff --git a/初试笔记/历年真题实现代码/19.3/源.cpp b/初试笔记/历年真题实现代码/19.3/源.cpp new file mode 100644 index 0000000..3e2f683 --- /dev/null +++ b/初试笔记/历年真题实现代码/19.3/源.cpp @@ -0,0 +1,76 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +void Adjustlist(Linklist& l) { + Lnode* p = l->next; + while (p && p->data <= 0) + p = p->next; + while (p->next) { + if (p->next->data < 0) { + Lnode* q = p->next; + p->next = q->next; + q->next = l->next; + l->next = q; + } + else + p = p->next; + } +} +/*answer*/ +void Adjustlist2(Linklist& l) +{ + Lnode* p = l; + Lnode* s = l; + Lnode* q; + while (p->next){ + q = p->next; + if (q->data < 0) { + p->next = q->next; + q->next = l->next; + l->next = q; + if (s == l) + s = q; + } + else if (q->data == 0) { + p->next = q->next; + q->next = s->next; + s->next = q; + } + else + p = p->next; + } +} + +int main(void) { + Lnode* L = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L; + int num[] = { 1,-3,4,-8,6,7,-2}; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + p = L->next; + while (p) { + printf("%d\n", p->data); + p = p->next; + } + printf("----------\n"); + //Adjustlist(L); + Adjustlist2(L); + p = L->next; + while (p) { + printf("%d\n", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/图基础代码.docx b/初试笔记/图基础代码.docx new file mode 100644 index 0000000..42106ba Binary files /dev/null and b/初试笔记/图基础代码.docx differ diff --git a/初试笔记/基础函数 线性表、树基础代码.doc b/初试笔记/基础函数 线性表、树基础代码.doc new file mode 100644 index 0000000..1bed5cf Binary files /dev/null and b/初试笔记/基础函数 线性表、树基础代码.doc differ diff --git a/初试笔记/操作系统校内笔记/1.JPG b/初试笔记/操作系统校内笔记/1.JPG new file mode 100644 index 0000000..67c8ab6 Binary files /dev/null and b/初试笔记/操作系统校内笔记/1.JPG differ diff --git a/初试笔记/操作系统校内笔记/10.JPG b/初试笔记/操作系统校内笔记/10.JPG new file mode 100644 index 0000000..5d5ddf0 Binary files /dev/null and b/初试笔记/操作系统校内笔记/10.JPG differ diff --git a/初试笔记/操作系统校内笔记/11.JPG b/初试笔记/操作系统校内笔记/11.JPG new file mode 100644 index 0000000..5507f10 Binary files /dev/null and b/初试笔记/操作系统校内笔记/11.JPG differ diff --git a/初试笔记/操作系统校内笔记/2.JPG b/初试笔记/操作系统校内笔记/2.JPG new file mode 100644 index 0000000..7c437ce Binary files /dev/null and b/初试笔记/操作系统校内笔记/2.JPG differ diff --git a/初试笔记/操作系统校内笔记/3.JPG b/初试笔记/操作系统校内笔记/3.JPG new file mode 100644 index 0000000..2c4eb12 Binary files /dev/null and b/初试笔记/操作系统校内笔记/3.JPG differ diff --git a/初试笔记/操作系统校内笔记/4.JPG b/初试笔记/操作系统校内笔记/4.JPG new file mode 100644 index 0000000..f8775e4 Binary files /dev/null and b/初试笔记/操作系统校内笔记/4.JPG differ diff --git a/初试笔记/操作系统校内笔记/5.JPG b/初试笔记/操作系统校内笔记/5.JPG new file mode 100644 index 0000000..7ade43b Binary files /dev/null and b/初试笔记/操作系统校内笔记/5.JPG differ diff --git a/初试笔记/操作系统校内笔记/6.JPG b/初试笔记/操作系统校内笔记/6.JPG new file mode 100644 index 0000000..4241eed Binary files /dev/null and b/初试笔记/操作系统校内笔记/6.JPG differ diff --git a/初试笔记/操作系统校内笔记/7.JPG b/初试笔记/操作系统校内笔记/7.JPG new file mode 100644 index 0000000..1c4c661 Binary files /dev/null and b/初试笔记/操作系统校内笔记/7.JPG differ diff --git a/初试笔记/操作系统校内笔记/8.JPG b/初试笔记/操作系统校内笔记/8.JPG new file mode 100644 index 0000000..6fe4a53 Binary files /dev/null and b/初试笔记/操作系统校内笔记/8.JPG differ diff --git a/初试笔记/操作系统校内笔记/9.JPG b/初试笔记/操作系统校内笔记/9.JPG new file mode 100644 index 0000000..3e2d619 Binary files /dev/null and b/初试笔记/操作系统校内笔记/9.JPG differ diff --git a/初试笔记/操作系统校内笔记/苏大校内笔记_操作系统.doc b/初试笔记/操作系统校内笔记/苏大校内笔记_操作系统.doc new file mode 100644 index 0000000..3b6a7bc Binary files /dev/null and b/初试笔记/操作系统校内笔记/苏大校内笔记_操作系统.doc differ diff --git a/初试笔记/数据结构知识点汇总.pdf b/初试笔记/数据结构知识点汇总.pdf new file mode 100644 index 0000000..ac88563 Binary files /dev/null and b/初试笔记/数据结构知识点汇总.pdf differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/.suo b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/.suo new file mode 100644 index 0000000..9be52d2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/Browse.VC.db new file mode 100644 index 0000000..203e958 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/ipch/AutoPCH/291511528d549c85/EG2.10.ipch b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/ipch/AutoPCH/291511528d549c85/EG2.10.ipch new file mode 100644 index 0000000..5d21ba1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/ipch/AutoPCH/291511528d549c85/EG2.10.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/ipch/AutoPCH/44059941862bc312/EG2.10.ipch b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/ipch/AutoPCH/44059941862bc312/EG2.10.ipch new file mode 100644 index 0000000..483493e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/.vs/chapter2.10/v16/ipch/AutoPCH/44059941862bc312/EG2.10.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.exe b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.exe new file mode 100644 index 0000000..8aa3b7f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.ilk b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.ilk new file mode 100644 index 0000000..52cfb41 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.log b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.log new file mode 100644 index 0000000..cfd7181 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.log @@ -0,0 +1,2 @@ + eg2.10.c + chapter2.10.vcxproj -> E:\allcode\c\king_instance\chapter2.10\Debug\chapter2.10.exe diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.pdb b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.pdb new file mode 100644 index 0000000..ec444b5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e3fc24d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.read.1.tlog new file mode 100644 index 0000000..6d806e1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.write.1.tlog new file mode 100644 index 0000000..406e412 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/chapter2.10.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/chapter2.10.lastbuildstate new file mode 100644 index 0000000..eff2e7f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/chapter2.10.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\chapter2.10\| diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.command.1.tlog new file mode 100644 index 0000000..9773bc1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.read.1.tlog new file mode 100644 index 0000000..b292b76 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.write.1.tlog new file mode 100644 index 0000000..6c19851 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..0e3f9bb --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/chapter2.10.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\chapter2.10\Debug\chapter2.10.exe +E:\allcode\c\king_instance\chapter2.10\Debug\chapter2.10.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/eg2.10.obj b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/eg2.10.obj new file mode 100644 index 0000000..52794f6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/eg2.10.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/vc142.idb new file mode 100644 index 0000000..d388526 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/vc142.pdb new file mode 100644 index 0000000..36847ce Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.10/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.sln b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.sln new file mode 100644 index 0000000..a5a6899 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter2.10", "chapter2.10.vcxproj", "{0465AA59-7167-4C3F-A943-F725DFAA6819}" +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 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Debug|x64.ActiveCfg = Debug|x64 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Debug|x64.Build.0 = Debug|x64 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Debug|x86.ActiveCfg = Debug|Win32 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Debug|x86.Build.0 = Debug|Win32 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Release|x64.ActiveCfg = Release|x64 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Release|x64.Build.0 = Release|x64 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Release|x86.ActiveCfg = Release|Win32 + {0465AA59-7167-4C3F-A943-F725DFAA6819}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2DD55143-8FAD-4CCA-A574-7C38B724A205} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj new file mode 100644 index 0000000..3721682 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {0465aa59-7167-4c3f-a943-f725dfaa6819} + chapter210 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj.filters new file mode 100644 index 0000000..a0a3f9b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/chapter2.10.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.2.10/eg2.10.c b/初试笔记/王道数据结构题实现代码/2.2.10/eg2.10.c new file mode 100644 index 0000000..04afa8c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.10/eg2.10.c @@ -0,0 +1,33 @@ +#include + +void Reverse(int R[], int from, int to) +{ + int i, temp; + for (i = 0; i < (to - from+1) / 2; i++) + { + temp = R[from + i]; + R[from + i] = R[to - i]; + R[to - i] = temp; + } +} + +void Converse(int R[], int n, int p) { + Reverse(R, 0, p - 1); + Reverse(R, p, n - 1); + Reverse(R, 0, n - 1); +} + +int main(void) { + int num[] = { 1,2,3,4,5,6,7,8 }; + for (int i = 0; i < 8; i++) + printf("%d", num[i]); + printf("\n"); + int length = sizeof(num) / sizeof(int),p; + printf("What tap do you want to reverse?\n"); + scanf_s("%d", &p); + Converse(num, length, p); + for (int i = 0; i < 8; i++) + printf("%d", num[i]); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/.suo b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/.suo new file mode 100644 index 0000000..865d930 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/Browse.VC.db new file mode 100644 index 0000000..6b8d7a5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/ipch/AutoPCH/389e7e7eb8948920/EG2.11.ipch b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/ipch/AutoPCH/389e7e7eb8948920/EG2.11.ipch new file mode 100644 index 0000000..57fb8cb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/ipch/AutoPCH/389e7e7eb8948920/EG2.11.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/ipch/AutoPCH/c136ded00bbc9ea8/EG2.11.ipch b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/ipch/AutoPCH/c136ded00bbc9ea8/EG2.11.ipch new file mode 100644 index 0000000..fb7a9df Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/.vs/chapter2.11/v16/ipch/AutoPCH/c136ded00bbc9ea8/EG2.11.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.sln b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.sln new file mode 100644 index 0000000..8bd0f87 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter2.11", "chapter2.11.vcxproj", "{6DFE65AD-F7A6-441F-A25A-8C94F9040B16}" +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 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Debug|x64.ActiveCfg = Debug|x64 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Debug|x64.Build.0 = Debug|x64 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Debug|x86.ActiveCfg = Debug|Win32 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Debug|x86.Build.0 = Debug|Win32 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Release|x64.ActiveCfg = Release|x64 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Release|x64.Build.0 = Release|x64 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Release|x86.ActiveCfg = Release|Win32 + {6DFE65AD-F7A6-441F-A25A-8C94F9040B16}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F2A0C563-48F0-4CE7-B665-3EA9C6334B0B} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj new file mode 100644 index 0000000..11c9ac4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {6dfe65ad-f7a6-441f-a25a-8c94f9040b16} + chapter211 + 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 + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj.filters new file mode 100644 index 0000000..e7c9125 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/chapter2.11.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/eg2.11.c b/初试笔记/王道数据结构题实现代码/2.2.11/eg2.11.c new file mode 100644 index 0000000..4339a38 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/eg2.11.c @@ -0,0 +1,65 @@ +#include + +int Find_middle(int s1[], int s2[], int L); +int M_search(int A[], int B[], int n); + +int main(void) +{ + int s1[] = { 11,13,15,17,19 }; + int s2[] = { 2,4,6,8,20 }; + + int length = sizeof(s1) / sizeof(int); + int middle = M_search(s1, s2, length); + //int middle=Find_middle(s1, s2, length); + printf("The middle of two nums is %d.", middle); + + return 0; +} + +//made by me +int Find_middle(int s1[], int s2[], int L) +{ + int i = 0, j = 0; //i Ϊs1ţjΪs2 + for (int n = 0; n < L - 1; n++) + if (s1[i] > s2[j]) + j++; + else + i++; + if (s1[i] < s2[j]) + return s1[i]; + else + return s2[j]; +} + +//answer +int M_search(int A[], int B[], int n) +{ + int s1 = 0, d1 = n - 1, m1, s2 = 0, d2 = n - 1, m2;//ֱʾABλĩλλ + while (s1 != d1 || s2 != d2) { + m1 = (s1 + d1) / 2; + m2 = (s2 + d2) / 2; + if (A[m1] == B[m2]) + return A[m1]; + if (A[m1] < B[m2]) { + if ((s1 + d1) % 2 == 0) { + s1 = m1; + d2 = m2; + } + else { + s1 = m1 + 1; + d2 = m2; + } + } + else { + if ((s2 + d2) % 2 == 0) { + d1 = m1; + s2 = m2; + } + else { + d1 = m1; + s2 = m2 + 1; + } + } + } + return A[s1] < B[s2] ? A[s1] : B[s2]; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.exe b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.exe new file mode 100644 index 0000000..bba8a78 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.ilk b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.ilk new file mode 100644 index 0000000..f12377e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.log b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.log new file mode 100644 index 0000000..3571a64 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.log @@ -0,0 +1,2 @@ + eg2.11.c + chapter2.11.vcxproj -> E:\allcode\c\king_instance\chapter2.11\x64\Debug\chapter2.11.exe diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.pdb b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.pdb new file mode 100644 index 0000000..85946d4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.command.1.tlog new file mode 100644 index 0000000..1b3fe9f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5c93a87 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.write.1.tlog new file mode 100644 index 0000000..19ac2a4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/chapter2.11.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/chapter2.11.lastbuildstate new file mode 100644 index 0000000..af91bb6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/chapter2.11.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|x64|E:\allcode\c\king_instance\chapter2.11\| diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.command.1.tlog new file mode 100644 index 0000000..d727bb0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.read.1.tlog new file mode 100644 index 0000000..84d7003 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.write.1.tlog new file mode 100644 index 0000000..2555705 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..93c65a8 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/chapter2.11.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\chapter2.11\x64\Debug\chapter2.11.exe +E:\allcode\c\king_instance\chapter2.11\x64\Debug\chapter2.11.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/eg2.11.obj b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/eg2.11.obj new file mode 100644 index 0000000..4750ec3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/eg2.11.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/vc142.idb new file mode 100644 index 0000000..9ccefea Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/vc142.pdb new file mode 100644 index 0000000..13f92fa Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.2.11/x64/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/.suo new file mode 100644 index 0000000..a42175d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/Browse.VC.db new file mode 100644 index 0000000..d2df0d4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/1cc0193c946305df/EG.ipch b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/1cc0193c946305df/EG.ipch new file mode 100644 index 0000000..b05462a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/1cc0193c946305df/EG.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/275b799adeb9c0d1/ADT.ipch b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/275b799adeb9c0d1/ADT.ipch new file mode 100644 index 0000000..285b67a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/275b799adeb9c0d1/ADT.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/3b3bcc3ae10c1267/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/3b3bcc3ae10c1267/源.ipch new file mode 100644 index 0000000..e8da57b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/3b3bcc3ae10c1267/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/44be17bfae49b800/ADT.ipch b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/44be17bfae49b800/ADT.ipch new file mode 100644 index 0000000..c8c4dc9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/44be17bfae49b800/ADT.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/a881950d9ce728f7/EG.ipch b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/a881950d9ce728f7/EG.ipch new file mode 100644 index 0000000..e8d46ee Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/.vs/cahpter2.3.1/v16/ipch/AutoPCH/a881950d9ce728f7/EG.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/adt.obj b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/adt.obj new file mode 100644 index 0000000..7f8a7d1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/adt.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.exe b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.exe new file mode 100644 index 0000000..d3f45f3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.ilk b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.ilk new file mode 100644 index 0000000..6999499 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.log b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.log new file mode 100644 index 0000000..728be5f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.log @@ -0,0 +1,2 @@ + adt.cpp + cahpter2.3.1.vcxproj -> E:\allcode\c\king_instance\cahpter2.3.1\Debug\cahpter2.3.1.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.pdb b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.pdb new file mode 100644 index 0000000..30dc852 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d721402 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..058a6f7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..734ae7b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/cahpter2.3.1.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/cahpter2.3.1.lastbuildstate new file mode 100644 index 0000000..4f351f9 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/cahpter2.3.1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\cahpter2.3.1\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.command.1.tlog new file mode 100644 index 0000000..b6484ef Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.read.1.tlog new file mode 100644 index 0000000..04135ea Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.write.1.tlog new file mode 100644 index 0000000..490ebd3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..64606ef --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/cahpter2.3.1.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\cahpter2.3.1\Debug\cahpter2.3.1.exe +E:\allcode\c\king_instance\cahpter2.3.1\Debug\cahpter2.3.1.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/eg.obj b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/eg.obj new file mode 100644 index 0000000..ac5456a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/eg.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/vc142.idb new file mode 100644 index 0000000..095f27e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/vc142.pdb new file mode 100644 index 0000000..0e3e8bd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/源.obj new file mode 100644 index 0000000..e927856 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.1/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/adt.cpp b/初试笔记/王道数据结构题实现代码/2.3.1/adt.cpp new file mode 100644 index 0000000..f93a89a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/adt.cpp @@ -0,0 +1,102 @@ +#include "adt.h" + +void del(LNode* & L, int x) { + LNode* p; + + if (L == NULL) + return; + //printf("%p\n", L->next); + if (L->data == x) + { + p = L; + printf("%p\n", p); + L = L->next; + free(p); + del(L, x); + } + else + del(L->next, x); +} +void del2(Linklist& L, int x) +{ + LNode* p; + printf("%d\n", L->next->data); + if (L == NULL) + return; + if (L->data == x) + { + p = L; + L = L->next; + free(p); + del2(L, x); + } + else if (L->next->data == x) + { + p = L->next; + L->next = p->next; + free(p); + del2(L, x); + } + else + del2(L->next,x); +} +/*ռ洢Ϣ*/ +LNode* CreateList(LNode* head) { + int length, input; + LNode* prev, * current; + puts("Please input the length of the list:"); + scanf("%d", &length); + prev = NULL; + for (int i = 0; i < length; i++) + { + printf("Enter the %d number:\n", i + 1); + scanf("%d", &input); + current = (struct LNode*)malloc(sizeof(struct LNode)); + if (head == NULL) + head = current; + else + prev->next = current; + current->next = NULL; + current->data = input; + while (getchar() != '\n') + continue; + prev = current; + } + /*current = head; + int j = 0; + while (current != NULL) + { + printf("In the first list,the %d number is %d\n", ++j, current->data); + //printf("%p\n", current); + current = current->next; + }*/ + return head; +} +/*ʾб*/ +void ShowList(LNode*head) { + LNode* current; + if (head == NULL) + printf("No data entered."); + else + printf("Here is the left list:\n"); + current = head; + int j = 0; + while (current != NULL) + { + printf("Through the function,the %d number is %d\n", ++j, current->data); + //printf("%p\n", current); + current = current->next; + } +} +/*ͷѷڴ*/ +void EmptyList(LNode* head) { + LNode* current; + current = head; + while (head != NULL) + { + current = head; + head = current->next; + free(current); + } + printf("Bye!\n"); +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/adt.h b/初试笔记/王道数据结构题实现代码/2.3.1/adt.h new file mode 100644 index 0000000..c40410c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/adt.h @@ -0,0 +1,12 @@ +#include +#include + +typedef struct LNode { + int data; + struct LNode* next; +}LNode, * Linklist; +void del(Linklist& L, int x); +LNode* CreateList(LNode* head); +void ShowList(LNode* head); +void EmptyList(LNode* head); +void del2(Linklist& L, int x); \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.sln b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.sln new file mode 100644 index 0000000..c2425c0 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cahpter2.3.1", "cahpter2.3.1.vcxproj", "{2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}" +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 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Debug|x64.ActiveCfg = Debug|x64 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Debug|x64.Build.0 = Debug|x64 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Debug|x86.ActiveCfg = Debug|Win32 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Debug|x86.Build.0 = Debug|Win32 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Release|x64.ActiveCfg = Release|x64 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Release|x64.Build.0 = Release|x64 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Release|x86.ActiveCfg = Release|Win32 + {2C53BD5F-C1D7-4C05-92B4-A9ECB6502DD9}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3FBF9748-BEFF-49F6-9CDB-040FF7945252} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj new file mode 100644 index 0000000..9686edd --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj @@ -0,0 +1,151 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + + + + + 16.0 + Win32Proj + {2c53bd5f-c1d7-4c05-92b4-a9ecb6502dd9} + cahpter231 + 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;_CRT_SECURE_NO_WARNINGS;%(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 + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj.filters new file mode 100644 index 0000000..e90ede4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/cahpter2.3.1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.1/eg.cpp b/初试笔记/王道数据结构题实现代码/2.3.1/eg.cpp new file mode 100644 index 0000000..7b3e687 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.1/eg.cpp @@ -0,0 +1,18 @@ +#include "adt.h" + + +int main(void) { + struct LNode* head = NULL; + int x; + + head = CreateList(head); + puts("What number dou you want to delete?"); + scanf("%d", &x); + del(head,x); + ShowList(head); + EmptyList(head); + + return 0; +} + + diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/.suo new file mode 100644 index 0000000..6415bc5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/Browse.VC.db new file mode 100644 index 0000000..ce5346a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/ipch/AutoPCH/c7b5b79eba49f311/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/ipch/AutoPCH/c7b5b79eba49f311/HEAD.ipch new file mode 100644 index 0000000..610d422 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/ipch/AutoPCH/c7b5b79eba49f311/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/ipch/AutoPCH/d6615ac38716b948/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/ipch/AutoPCH/d6615ac38716b948/源.ipch new file mode 100644 index 0000000..52c9fc5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/.vs/2.3.10/v16/ipch/AutoPCH/d6615ac38716b948/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.sln b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.sln new file mode 100644 index 0000000..e845ae0 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.10", "2.3.10.vcxproj", "{8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}" +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 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Debug|x64.ActiveCfg = Debug|x64 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Debug|x64.Build.0 = Debug|x64 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Debug|x86.ActiveCfg = Debug|Win32 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Debug|x86.Build.0 = Debug|Win32 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Release|x64.ActiveCfg = Release|x64 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Release|x64.Build.0 = Release|x64 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Release|x86.ActiveCfg = Release|Win32 + {8BE660D6-B8FB-4042-9502-E43B5A6A5E1D}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E90EA61A-6CCA-4DF3-BF3A-8891337AFF82} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj new file mode 100644 index 0000000..ee17ce1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {8be660d6-b8fb-4042-9502-e43b5a6a5e1d} + My2310 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/2.3.10.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.exe b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.exe new file mode 100644 index 0000000..362691d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.ilk b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.ilk new file mode 100644 index 0000000..4f749b8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.log b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.log new file mode 100644 index 0000000..a47549e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.10.vcxproj -> E:\allcode\c\king_instance\2.3.10\Debug\2.3.10.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.pdb b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.pdb new file mode 100644 index 0000000..d19e0d8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/2.3.10.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/2.3.10.lastbuildstate new file mode 100644 index 0000000..0dfc658 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/2.3.10.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.10\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.command.1.tlog new file mode 100644 index 0000000..4f67b68 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.read.1.tlog new file mode 100644 index 0000000..833ea98 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b9f2b08 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.command.1.tlog new file mode 100644 index 0000000..a039ea6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.read.1.tlog new file mode 100644 index 0000000..bb0889e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.write.1.tlog new file mode 100644 index 0000000..827a57d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..f97007d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/2.3.10.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.10\Debug\2.3.10.exe +E:\allcode\c\king_instance\2.3.10\Debug\2.3.10.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/vc142.idb new file mode 100644 index 0000000..a3cefcc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/vc142.pdb new file mode 100644 index 0000000..7655dea Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/源.obj new file mode 100644 index 0000000..d6d52c6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.10/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/head.h b/初试笔记/王道数据结构题实现代码/2.3.10/head.h new file mode 100644 index 0000000..64170b7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/head.h @@ -0,0 +1,25 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +Lnode* Seperate(Linklist& A) { + Linklist B = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = A->next; + Lnode* q = p->next, * r = B; + while (p) { + p->next = q->next; + r->next = q; + r = q; + p = p->next; + if (p&&p->next) + q = p->next; + else + break; + } + r->next = NULL; + return B; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.10/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.10/源.cpp new file mode 100644 index 0000000..fc2b2aa --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.10/源.cpp @@ -0,0 +1,32 @@ +#include"head.h" +/* +㷨˼룺Aв֣ÿԪأλżλβ嵽ϣֻΪĿ굥 +*/ +int main(void) { + Lnode* A = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = A; + int num[] = { 1,-3,4,-8,6,7 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + Lnode* B = Seperate(A); + Lnode* q = B->next; + p = A->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + printf("\n"); + while (q) { + printf("%d ", q->data); + q = q->next; + } + + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/.suo new file mode 100644 index 0000000..1066517 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/Browse.VC.db new file mode 100644 index 0000000..4a5d36a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/ipch/AutoPCH/2cc50065153790e3/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/ipch/AutoPCH/2cc50065153790e3/HEAD.ipch new file mode 100644 index 0000000..1a780da Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/ipch/AutoPCH/2cc50065153790e3/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/ipch/AutoPCH/bf63fdb4e2f788ba/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/ipch/AutoPCH/bf63fdb4e2f788ba/源.ipch new file mode 100644 index 0000000..b402b66 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/.vs/2.3.12/v16/ipch/AutoPCH/bf63fdb4e2f788ba/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.sln b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.sln new file mode 100644 index 0000000..cac8fc7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.12", "2.3.12.vcxproj", "{EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}" +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 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Debug|x64.ActiveCfg = Debug|x64 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Debug|x64.Build.0 = Debug|x64 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Debug|x86.ActiveCfg = Debug|Win32 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Debug|x86.Build.0 = Debug|Win32 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Release|x64.ActiveCfg = Release|x64 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Release|x64.Build.0 = Release|x64 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Release|x86.ActiveCfg = Release|Win32 + {EBA5F8E3-0E90-4FD6-B380-E65A9100F3AF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E6DAB08E-0E90-4B96-A79E-2F85BB7440A8} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj new file mode 100644 index 0000000..492e66d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {eba5f8e3-0e90-4fd6-b380-e65a9100f3af} + My2312 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/2.3.12.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.exe b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.exe new file mode 100644 index 0000000..9b0a02a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.ilk b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.ilk new file mode 100644 index 0000000..297a240 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.log b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.log new file mode 100644 index 0000000..6a3aed3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.12.vcxproj -> E:\allcode\c\king_instance\2.3.12\Debug\2.3.12.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.pdb b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.pdb new file mode 100644 index 0000000..6157463 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/2.3.12.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/2.3.12.lastbuildstate new file mode 100644 index 0000000..966950b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/2.3.12.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.12\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.command.1.tlog new file mode 100644 index 0000000..582259f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.read.1.tlog new file mode 100644 index 0000000..fa6e89e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ff8908c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.command.1.tlog new file mode 100644 index 0000000..cb02617 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.read.1.tlog new file mode 100644 index 0000000..bddff3c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.write.1.tlog new file mode 100644 index 0000000..bc42313 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..e5efdf6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/2.3.12.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.12\Debug\2.3.12.exe +E:\allcode\c\king_instance\2.3.12\Debug\2.3.12.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/vc142.idb new file mode 100644 index 0000000..eb32f83 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/vc142.pdb new file mode 100644 index 0000000..77f04ad Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/源.obj new file mode 100644 index 0000000..7e840d6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.12/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/head.h b/初试笔记/王道数据结构题实现代码/2.3.12/head.h new file mode 100644 index 0000000..99320cd --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/head.h @@ -0,0 +1,24 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +void Deletsame(Linklist& l) { + if (!l->next) + return; + Lnode* p = l->next; + Lnode* q = p->next; + while (q) { + if (p->data == q->data) + { + p->next = q->next; + free(q); + } + else + p = q; + q = p->next; + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.12/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.12/源.cpp new file mode 100644 index 0000000..9f567f0 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.12/源.cpp @@ -0,0 +1,26 @@ +#include"head.h" + +int main(void) { + Lnode* L = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L; + int num[] = {7,10,10,21,30,42,42,51,70,70}; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + + Deletsame(L); + p = L->next; + while (p) + { + printf("%d ", p->data); + p = p->next; + } + + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/.suo new file mode 100644 index 0000000..a5c5c5d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/Browse.VC.db new file mode 100644 index 0000000..73886a1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/ipch/AutoPCH/25937c689968c3ab/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/ipch/AutoPCH/25937c689968c3ab/源.ipch new file mode 100644 index 0000000..8be9bb7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/ipch/AutoPCH/25937c689968c3ab/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/ipch/AutoPCH/2cc1a63949017644/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/ipch/AutoPCH/2cc1a63949017644/HEAD.ipch new file mode 100644 index 0000000..2201121 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/.vs/2.3.13/v16/ipch/AutoPCH/2cc1a63949017644/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.sln b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.sln new file mode 100644 index 0000000..7e66e64 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.13", "2.3.13.vcxproj", "{47A9ABF5-F7A4-494C-87B4-4F2DA692009B}" +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 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Debug|x64.ActiveCfg = Debug|x64 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Debug|x64.Build.0 = Debug|x64 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Debug|x86.ActiveCfg = Debug|Win32 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Debug|x86.Build.0 = Debug|Win32 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Release|x64.ActiveCfg = Release|x64 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Release|x64.Build.0 = Release|x64 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Release|x86.ActiveCfg = Release|Win32 + {47A9ABF5-F7A4-494C-87B4-4F2DA692009B}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3036C4B1-7C4E-432E-BB23-BC7043CC5C17} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj new file mode 100644 index 0000000..bbde808 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {47a9abf5-f7a4-494c-87b4-4f2da692009b} + My2313 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/2.3.13.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.exe b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.exe new file mode 100644 index 0000000..d6f2115 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.ilk b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.ilk new file mode 100644 index 0000000..ff154f0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.log b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.log new file mode 100644 index 0000000..57bb0e3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.13.vcxproj -> E:\allcode\c\king_instance\2.3.13\Debug\2.3.13.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.pdb b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.pdb new file mode 100644 index 0000000..95af166 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/2.3.13.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/2.3.13.lastbuildstate new file mode 100644 index 0000000..7fe3b0d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/2.3.13.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.13\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.command.1.tlog new file mode 100644 index 0000000..39fecce Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.read.1.tlog new file mode 100644 index 0000000..55f025f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.write.1.tlog new file mode 100644 index 0000000..62630b6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.command.1.tlog new file mode 100644 index 0000000..761b7b1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.read.1.tlog new file mode 100644 index 0000000..0400f60 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.write.1.tlog new file mode 100644 index 0000000..a187126 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b7bca33 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/2.3.13.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.13\Debug\2.3.13.exe +E:\allcode\c\king_instance\2.3.13\Debug\2.3.13.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/vc142.idb new file mode 100644 index 0000000..db16e7a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/vc142.pdb new file mode 100644 index 0000000..7ec3120 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/源.obj new file mode 100644 index 0000000..2a5c689 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.13/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/head.h b/初试笔记/王道数据结构题实现代码/2.3.13/head.h new file mode 100644 index 0000000..00baa9b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/head.h @@ -0,0 +1,62 @@ +#include +#include +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; +//ͷ巨 õݼ +Linklist Incorperate(Linklist& A, Linklist& B) { + Lnode* p = A->next; + Lnode* q = B->next; + Linklist C = (Linklist)malloc(sizeof(Lnode)); + C->next=NULL; + Lnode* r = NULL; + while (p && q) { + if (p->data > q->data) + { + r = q; + q = q->next; + } + else + { + r = p; + p = p->next; + } + r->next = C->next; + C->next=r; + } + r = p ? p : q; + while (r) { + p = r; + r = r->next; + p->next = C->next; + C->next = p; + + } + return C; +} +//β巨 õ +Linklist Incorperate2(Linklist& A, Linklist& B) { + Lnode* p = A->next; + Lnode* q = B->next; + Linklist C = (Linklist)malloc(sizeof(Lnode)); + Lnode* r = C; + while (p && q) { + if (p->data > q->data) + { + r->next = q; + q = q->next; + } + else + { + r->next = p; + p = p->next; + } + r = r->next; + } + if (p) + r->next = p; + else + r->next = q; + return C; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.13/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.13/源.cpp new file mode 100644 index 0000000..d952cbc --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.13/源.cpp @@ -0,0 +1,35 @@ +#include"head.h" +int main(void) { + Lnode* A = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = A; + int num[] = { 1,6,7,12 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + Lnode* B = (Linklist)malloc(sizeof(Lnode)); + p = B; + int num2[] = { 2,4,7,9,15}; + len = sizeof(num2) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num2[i]; + p->next = r; + p = r; + } + p->next = NULL; + Linklist C = (Linklist)malloc(sizeof(Lnode)); + C=Incorperate(A, B); + p = C->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/.suo new file mode 100644 index 0000000..81b2d3d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/Browse.VC.db new file mode 100644 index 0000000..fce0db5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/ipch/AutoPCH/1069c6bbeb81f376/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/ipch/AutoPCH/1069c6bbeb81f376/HEAD.ipch new file mode 100644 index 0000000..d3beefd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/ipch/AutoPCH/1069c6bbeb81f376/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/ipch/AutoPCH/bba93b01b1104415/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/ipch/AutoPCH/bba93b01b1104415/源.ipch new file mode 100644 index 0000000..baf6548 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/.vs/2.3.15/v16/ipch/AutoPCH/bba93b01b1104415/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.sln b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.sln new file mode 100644 index 0000000..1dab4aa --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.15", "2.3.15.vcxproj", "{0EF53789-E82B-409F-821E-94B376031FA1}" +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 + {0EF53789-E82B-409F-821E-94B376031FA1}.Debug|x64.ActiveCfg = Debug|x64 + {0EF53789-E82B-409F-821E-94B376031FA1}.Debug|x64.Build.0 = Debug|x64 + {0EF53789-E82B-409F-821E-94B376031FA1}.Debug|x86.ActiveCfg = Debug|Win32 + {0EF53789-E82B-409F-821E-94B376031FA1}.Debug|x86.Build.0 = Debug|Win32 + {0EF53789-E82B-409F-821E-94B376031FA1}.Release|x64.ActiveCfg = Release|x64 + {0EF53789-E82B-409F-821E-94B376031FA1}.Release|x64.Build.0 = Release|x64 + {0EF53789-E82B-409F-821E-94B376031FA1}.Release|x86.ActiveCfg = Release|Win32 + {0EF53789-E82B-409F-821E-94B376031FA1}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EA6C8E11-15F7-4AFD-AFD5-8B3EDFEDD652} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj new file mode 100644 index 0000000..abf5a10 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {0ef53789-e82b-409f-821e-94b376031fa1} + My2315 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/2.3.15.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.exe b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.exe new file mode 100644 index 0000000..590224c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.ilk b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.ilk new file mode 100644 index 0000000..587a89b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.log b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.log new file mode 100644 index 0000000..8022e5e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.15.vcxproj -> E:\allcode\c\king_instance\2.3.15\Debug\2.3.15.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.pdb b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.pdb new file mode 100644 index 0000000..660567d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/2.3.15.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/2.3.15.lastbuildstate new file mode 100644 index 0000000..09f3c26 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/2.3.15.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.15\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.command.1.tlog new file mode 100644 index 0000000..fb83784 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.read.1.tlog new file mode 100644 index 0000000..79e5473 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.write.1.tlog new file mode 100644 index 0000000..38f3cb6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.command.1.tlog new file mode 100644 index 0000000..98da746 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.read.1.tlog new file mode 100644 index 0000000..4b66989 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.write.1.tlog new file mode 100644 index 0000000..e488da4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..9dd1653 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/2.3.15.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.15\Debug\2.3.15.exe +E:\allcode\c\king_instance\2.3.15\Debug\2.3.15.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/vc142.idb new file mode 100644 index 0000000..a7be7f9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/vc142.pdb new file mode 100644 index 0000000..ff758ce Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/源.obj new file mode 100644 index 0000000..563669e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.15/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/head.h b/初试笔记/王道数据结构题实现代码/2.3.15/head.h new file mode 100644 index 0000000..32dd196 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/head.h @@ -0,0 +1,29 @@ +#include +#include + +//ṹ +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +void Findsame(Linklist& A, Linklist& B) { + Lnode* p = A->next; + Lnode* q = B->next; + Lnode* r = A; //Ǵɾڵǰڵ + while (p && q) { + if (p->data > q->data) + q = q->next; + else if (p->data < q->data) { + r->next = p->next; + free(p); + p = r->next; + } + else { + r = r->next; + p = p->next; + } + }//while + if (p) + p->next = NULL; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.15/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.15/源.cpp new file mode 100644 index 0000000..8c7ce02 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.15/源.cpp @@ -0,0 +1,39 @@ +#include"head.h" +/* +㷨˼룺ΪABĽAбضֻɾAнԪء +*/ +int main(void) { + // + Lnode* A = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = A; + int num[] = {-3,-2,1,4,5,6,7,12 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + Lnode* B = (Linklist)malloc(sizeof(Lnode)); + p= B; + int num2[] = { -2,3,5,8,12 }; + len = sizeof(num2) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num2[i]; + p->next = r; + p = r; + } + p->next = NULL; + Findsame(A, B); + p = A->next; + while (p) + { + printf("%d ", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/.suo new file mode 100644 index 0000000..30e163f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/Browse.VC.db new file mode 100644 index 0000000..be6f9b4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/ipch/AutoPCH/59e5f5cdf0ed9787/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/ipch/AutoPCH/59e5f5cdf0ed9787/HEAD.ipch new file mode 100644 index 0000000..f44169e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/ipch/AutoPCH/59e5f5cdf0ed9787/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/ipch/AutoPCH/9e79c783bbe545ee/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/ipch/AutoPCH/9e79c783bbe545ee/源.ipch new file mode 100644 index 0000000..c08841e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/.vs/2.3.16/v16/ipch/AutoPCH/9e79c783bbe545ee/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.sln b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.sln new file mode 100644 index 0000000..8dd1f5f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.16", "2.3.16.vcxproj", "{4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}" +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 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Debug|x64.ActiveCfg = Debug|x64 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Debug|x64.Build.0 = Debug|x64 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Debug|x86.ActiveCfg = Debug|Win32 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Debug|x86.Build.0 = Debug|Win32 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Release|x64.ActiveCfg = Release|x64 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Release|x64.Build.0 = Release|x64 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Release|x86.ActiveCfg = Release|Win32 + {4DF1CAB8-2AAF-4491-A1B9-0F2E89B26467}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {589240D7-D096-4752-85F9-23E21A8E224C} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj new file mode 100644 index 0000000..05f6607 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {4df1cab8-2aaf-4491-a1b9-0f2e89b26467} + My2316 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/2.3.16.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.exe b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.exe new file mode 100644 index 0000000..3afafbd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.ilk b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.ilk new file mode 100644 index 0000000..dc1726b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.log b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.log new file mode 100644 index 0000000..452e64d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.16.vcxproj -> E:\allcode\c\king_instance\2.3.16\Debug\2.3.16.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.pdb b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.pdb new file mode 100644 index 0000000..aa875cd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/2.3.16.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/2.3.16.lastbuildstate new file mode 100644 index 0000000..08d0f81 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/2.3.16.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.16\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.command.1.tlog new file mode 100644 index 0000000..afe449e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.read.1.tlog new file mode 100644 index 0000000..18d0080 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.write.1.tlog new file mode 100644 index 0000000..1c74296 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.command.1.tlog new file mode 100644 index 0000000..2e082a9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.read.1.tlog new file mode 100644 index 0000000..50b274f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.write.1.tlog new file mode 100644 index 0000000..3f68393 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..abae1a8 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/2.3.16.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.16\Debug\2.3.16.exe +E:\allcode\c\king_instance\2.3.16\Debug\2.3.16.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/vc142.idb new file mode 100644 index 0000000..92fab31 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/vc142.pdb new file mode 100644 index 0000000..3115e7e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/源.obj new file mode 100644 index 0000000..98bf48c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.16/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/head.h b/初试笔记/王道数据结构题实现代码/2.3.16/head.h new file mode 100644 index 0000000..4fb81a4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/head.h @@ -0,0 +1,20 @@ +#include +#include + +//ṹ +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +//Ŀ꺯 +bool Judgement(Linklist A, Linklist B) { + Lnode* p = A->next; + Lnode* q = B->next; + while (p && q) { + q = p->data == q->data ? q->next : B->next; + p = p->next; + } + return q ? false : true; + +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.16/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.16/源.cpp new file mode 100644 index 0000000..f03f80f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.16/源.cpp @@ -0,0 +1,34 @@ +#include"head.h" +/* +㷨˼룺αԪͬͬʱͬABطбȽϣ +ֱABһΪգBˣ˵BΪAУ +*/ +int main(void) { + // + Lnode* A = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = A; + int num[] = { 5,1,-3,4,-8,6,7,-2 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + Lnode* B = (Linklist)malloc(sizeof(Lnode)); + p = B; + int num2[] = { 1,-3,4,-8,6,3}; + len = sizeof(num2) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num2[i]; + p->next = r; + p = r; + } + p->next = NULL; + printf("%5s ", Judgement(A, B) ? "yes" : "no"); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/.suo new file mode 100644 index 0000000..2229c57 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/Browse.VC.db new file mode 100644 index 0000000..00958ec Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/ipch/AutoPCH/11ed3e901a8fcfa7/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/ipch/AutoPCH/11ed3e901a8fcfa7/源.ipch new file mode 100644 index 0000000..5701ae1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/ipch/AutoPCH/11ed3e901a8fcfa7/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/ipch/AutoPCH/228411f700746bb0/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/ipch/AutoPCH/228411f700746bb0/HEAD.ipch new file mode 100644 index 0000000..1a79ef1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/.vs/2.3.17/v16/ipch/AutoPCH/228411f700746bb0/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.sln b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.sln new file mode 100644 index 0000000..d4e5682 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.17", "2.3.17.vcxproj", "{57479FC4-C7A6-4B17-B061-80D95A4DBDE2}" +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 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Debug|x64.ActiveCfg = Debug|x64 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Debug|x64.Build.0 = Debug|x64 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Debug|x86.ActiveCfg = Debug|Win32 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Debug|x86.Build.0 = Debug|Win32 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Release|x64.ActiveCfg = Release|x64 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Release|x64.Build.0 = Release|x64 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Release|x86.ActiveCfg = Release|Win32 + {57479FC4-C7A6-4B17-B061-80D95A4DBDE2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {80D40CAF-942A-4C63-9D84-227A5337ED0A} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj new file mode 100644 index 0000000..9b5098f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {57479fc4-c7a6-4b17-b061-80d95a4dbde2} + My2317 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/2.3.17.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.exe b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.exe new file mode 100644 index 0000000..c765dc3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.ilk b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.ilk new file mode 100644 index 0000000..be403ff Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.log b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.log new file mode 100644 index 0000000..cc5c170 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.17.vcxproj -> E:\allcode\c\king_instance\2.3.17\Debug\2.3.17.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.pdb b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.pdb new file mode 100644 index 0000000..6e381db Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/2.3.17.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/2.3.17.lastbuildstate new file mode 100644 index 0000000..62e23a3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/2.3.17.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.17\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.command.1.tlog new file mode 100644 index 0000000..73545b0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3b820e5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.write.1.tlog new file mode 100644 index 0000000..64d5b8b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.command.1.tlog new file mode 100644 index 0000000..49a505c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.read.1.tlog new file mode 100644 index 0000000..5e1fe4c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.write.1.tlog new file mode 100644 index 0000000..31c5b31 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..3ed37e1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/2.3.17.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.17\Debug\2.3.17.exe +E:\allcode\c\king_instance\2.3.17\Debug\2.3.17.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/vc142.idb new file mode 100644 index 0000000..c35d51a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/vc142.pdb new file mode 100644 index 0000000..1f497ce Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/源.obj new file mode 100644 index 0000000..93b5b01 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.17/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/head.h b/初试笔记/王道数据结构题实现代码/2.3.17/head.h new file mode 100644 index 0000000..c89464e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/head.h @@ -0,0 +1,19 @@ +#include +#include + +typedef struct Dnode { + int data; + struct Dnode* prior, * next; +}Dnode, * Dlinklist; + +bool Judgement(Dlinklist h) { + Dnode* p = h->next; + Dnode* q = p->prior; + while (p != q && p->next != q) { + if (p->data != q->data) + return false; + p = p->next; + q = q->prior; + } + return true; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.17/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.17/源.cpp new file mode 100644 index 0000000..a194845 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.17/源.cpp @@ -0,0 +1,23 @@ +#include "head.h" +/* +㷨˼룺Ϊѭ˫ͨͷڵҵʼڵĩβڵ㣬 +˫ͷͬʱ鿴ԪǷԳƣԳ򷵻falseδʾǶԳƵġ +*/ +int main(void) { + Dnode* L = (Dlinklist)malloc(sizeof(Dnode)); + Dnode* p = L; + int num[] = { 1,2,2,1}; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Dnode* r = (Dlinklist)malloc(sizeof(Dnode)); + r->data = num[i]; + p->next = r; + r->prior = p; + p = r; + } + p->next = L->next; + p->next->prior = p; + printf("%3s ", Judgement(L) ? "yes" : "no"); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/.suo new file mode 100644 index 0000000..bdf7604 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/Browse.VC.db new file mode 100644 index 0000000..3f35905 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/ipch/AutoPCH/4f9cb1e83c394679/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/ipch/AutoPCH/4f9cb1e83c394679/源.ipch new file mode 100644 index 0000000..5f34681 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/ipch/AutoPCH/4f9cb1e83c394679/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/ipch/AutoPCH/c5aa0d5613057aea/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/ipch/AutoPCH/c5aa0d5613057aea/HEAD.ipch new file mode 100644 index 0000000..3678508 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/.vs/2.3.20/v16/ipch/AutoPCH/c5aa0d5613057aea/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.sln b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.sln new file mode 100644 index 0000000..a81f096 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.20", "2.3.20.vcxproj", "{7F9EA612-F154-4F64-96AE-04BB1E10A1DE}" +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 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Debug|x64.ActiveCfg = Debug|x64 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Debug|x64.Build.0 = Debug|x64 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Debug|x86.ActiveCfg = Debug|Win32 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Debug|x86.Build.0 = Debug|Win32 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Release|x64.ActiveCfg = Release|x64 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Release|x64.Build.0 = Release|x64 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Release|x86.ActiveCfg = Release|Win32 + {7F9EA612-F154-4F64-96AE-04BB1E10A1DE}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A602C17A-1FDA-4D5F-AC4B-501C84BC2683} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj new file mode 100644 index 0000000..900ddca --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {7f9ea612-f154-4f64-96ae-04bb1e10a1de} + My2320 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/2.3.20.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.exe b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.exe new file mode 100644 index 0000000..546a3e5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.ilk b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.ilk new file mode 100644 index 0000000..ceb718e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.log b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.log new file mode 100644 index 0000000..44949f8 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.20.vcxproj -> E:\allcode\c\king_instance\2.3.20\Debug\2.3.20.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.pdb b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.pdb new file mode 100644 index 0000000..3b70a52 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/2.3.20.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/2.3.20.lastbuildstate new file mode 100644 index 0000000..4717bfb --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/2.3.20.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.20\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.command.1.tlog new file mode 100644 index 0000000..3351975 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4c9ebc0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.write.1.tlog new file mode 100644 index 0000000..fc2e359 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.command.1.tlog new file mode 100644 index 0000000..a19dd51 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.read.1.tlog new file mode 100644 index 0000000..34a73ba Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.write.1.tlog new file mode 100644 index 0000000..f711c38 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..134e496 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/2.3.20.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.20\Debug\2.3.20.exe +E:\allcode\c\king_instance\2.3.20\Debug\2.3.20.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/vc142.idb new file mode 100644 index 0000000..8d977c3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/vc142.pdb new file mode 100644 index 0000000..5d92a4f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/源.obj new file mode 100644 index 0000000..725b30a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.20/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/head.h b/初试笔记/王道数据结构题实现代码/2.3.20/head.h new file mode 100644 index 0000000..5f2f8b4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/head.h @@ -0,0 +1,27 @@ +#include +#include + +typedef struct Dnode { + int data; + int freq; + struct Dnode* prior, * next; +}Dnode, * Dlinklist; +Dlinklist Locate(Dlinklist& l, int x) { + Dnode* p = l->next, *q; + while (p && p->data != x) + p = p->next; + if (!p) + return NULL; + p->freq++; + q = p->prior; + while (q != l && p->freq > q->freq) + q = q->prior; + p->prior->next = p->next; + if (p->next != NULL) + p->next->prior = p->prior; + p->next = q->next; + p->next->prior = p; + q->next = p; + p->prior = q; + return p; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.20/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.20/源.cpp new file mode 100644 index 0000000..17d9c3d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.20/源.cpp @@ -0,0 +1,30 @@ +#include "head.h" +/* +㷨˼룺˫ص㣬LocateȲֵΪxĽڵ㣬Ըýڵpбǣٽǰӡ +֮ѰʵIJλãqбǣǵpڵ뵽ڵ֮󼴿ɡ +*/ +int main(void) { + Dnode* L = (Dlinklist)malloc(sizeof(Dnode)); + Dnode* p = L; + int num[] = { 1,2,3,4 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Dnode* r = (Dlinklist)malloc(sizeof(Dnode)); + r->data = num[i]; + r->freq = 0; + p->next = r; + r->prior = p; + p = r; + } + p->next = NULL; + p = Locate(L, 2); + p = Locate(L, 3); + p = Locate(L, 4); + p = L->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/.suo new file mode 100644 index 0000000..48e2b6c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/Browse.VC.db new file mode 100644 index 0000000..f03fdcc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/ipch/AutoPCH/ad7c8087c39b78e8/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/ipch/AutoPCH/ad7c8087c39b78e8/HEAD.ipch new file mode 100644 index 0000000..491b87f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/ipch/AutoPCH/ad7c8087c39b78e8/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/ipch/AutoPCH/be19d6aaabb7febf/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/ipch/AutoPCH/be19d6aaabb7febf/源.ipch new file mode 100644 index 0000000..6cad9f6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/.vs/2.3.22/v16/ipch/AutoPCH/be19d6aaabb7febf/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.sln b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.sln new file mode 100644 index 0000000..52bd5d3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.22", "2.3.22.vcxproj", "{F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}" +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 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Debug|x64.ActiveCfg = Debug|x64 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Debug|x64.Build.0 = Debug|x64 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Debug|x86.ActiveCfg = Debug|Win32 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Debug|x86.Build.0 = Debug|Win32 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Release|x64.ActiveCfg = Release|x64 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Release|x64.Build.0 = Release|x64 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Release|x86.ActiveCfg = Release|Win32 + {F9D6E8E6-8C6B-4CAC-B2F7-F051BDE6A173}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2E6A2FBB-F133-4B06-91B4-3B6107A2EA3F} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj new file mode 100644 index 0000000..74a88fc --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {f9d6e8e6-8c6b-4cac-b2f7-f051bde6a173} + My2322 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/2.3.22.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.exe b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.exe new file mode 100644 index 0000000..5f7c275 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.ilk b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.ilk new file mode 100644 index 0000000..8a2d62e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.log b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.log new file mode 100644 index 0000000..3373731 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.22.vcxproj -> E:\allcode\c\king_instance\2.3.22\Debug\2.3.22.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.pdb b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.pdb new file mode 100644 index 0000000..f075c8b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/2.3.22.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/2.3.22.lastbuildstate new file mode 100644 index 0000000..19f3ba5 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/2.3.22.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.22\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.command.1.tlog new file mode 100644 index 0000000..530a72b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8b4888f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.write.1.tlog new file mode 100644 index 0000000..aade16b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.command.1.tlog new file mode 100644 index 0000000..4495045 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.read.1.tlog new file mode 100644 index 0000000..a120836 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.write.1.tlog new file mode 100644 index 0000000..c5afbcc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..0a35f4c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/2.3.22.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.22\Debug\2.3.22.exe +E:\allcode\c\king_instance\2.3.22\Debug\2.3.22.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/vc142.idb new file mode 100644 index 0000000..74950b2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/vc142.pdb new file mode 100644 index 0000000..3681319 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/源.obj new file mode 100644 index 0000000..a5127b6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.22/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/head.h b/初试笔记/王道数据结构题实现代码/2.3.22/head.h new file mode 100644 index 0000000..63b7187 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/head.h @@ -0,0 +1,35 @@ +#include +#include + +typedef struct Lnode { + char data; + struct Lnode* next; +}Lnode, * Linklist; + +int Listlen(Lnode* head) { + int len = 0; + while (head->next != NULL) { + len++; + head = head->next; + } + return len; +} +Linklist find(Linklist l1, Linklist l2) { + return l1; +} + +Linklist find2(Linklist l1, Linklist l2) { + int m, n; + Lnode* p, * q; + m = Listlen(l1); + n = Listlen(l2); + for (p = l1; m > n; m--) + p = p->next; + for (q = l2; m < n; n--) + q = q->next; + while (p->next != NULL && p->next->data != q->next->data) { + p = p->next; + q = q->next; + } + return p->next; +} diff --git a/初试笔记/王道数据结构题实现代码/2.3.22/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.22/源.cpp new file mode 100644 index 0000000..b730c3c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.22/源.cpp @@ -0,0 +1,33 @@ +#include"head.h" +int main(void) { + Lnode* L1 = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L1; + char num[] = { 'l','o','b','b','i','n','g' }; + int len = sizeof(num) / sizeof(char); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + Lnode* L2 = (Linklist)malloc(sizeof(Lnode)); + p = L2; + char num2[] = { 'b','e','i','n','g' }; + len = sizeof(num2) / sizeof(char); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num2[i]; + p->next = r; + p = r; + } + p->next = NULL; + p = find2(L1, L2); + while (p) { + printf("%c ", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/.suo new file mode 100644 index 0000000..28e3c21 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/Browse.VC.db new file mode 100644 index 0000000..678bbfb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/ipch/AutoPCH/2a773a908b13d62e/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/ipch/AutoPCH/2a773a908b13d62e/源.ipch new file mode 100644 index 0000000..99a2ea5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/ipch/AutoPCH/2a773a908b13d62e/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/ipch/AutoPCH/4fe3ccd41be046c7/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/ipch/AutoPCH/4fe3ccd41be046c7/HEAD.ipch new file mode 100644 index 0000000..e0ab9cd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/.vs/2.3.23/v16/ipch/AutoPCH/4fe3ccd41be046c7/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.sln b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.sln new file mode 100644 index 0000000..78bb8cd --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.23", "2.3.23.vcxproj", "{B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}" +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 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Debug|x64.ActiveCfg = Debug|x64 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Debug|x64.Build.0 = Debug|x64 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Debug|x86.ActiveCfg = Debug|Win32 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Debug|x86.Build.0 = Debug|Win32 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Release|x64.ActiveCfg = Release|x64 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Release|x64.Build.0 = Release|x64 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Release|x86.ActiveCfg = Release|Win32 + {B00FB9A2-93C7-4358-A85F-E2ADC77C20B4}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A88EC535-8675-42E1-ACF0-91C93711DD21} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj new file mode 100644 index 0000000..e3e1aa3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b00fb9a2-93c7-4358-a85f-e2adc77c20b4} + My2323 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/2.3.23.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.exe b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.exe new file mode 100644 index 0000000..43a0fe5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.ilk b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.ilk new file mode 100644 index 0000000..5b98991 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.log b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.log new file mode 100644 index 0000000..fc944cf --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.23.vcxproj -> E:\allcode\c\king_instance\2.3.23\Debug\2.3.23.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.pdb b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.pdb new file mode 100644 index 0000000..ed03802 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/2.3.23.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/2.3.23.lastbuildstate new file mode 100644 index 0000000..d44718e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/2.3.23.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.23\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e15df04 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2b36a98 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.write.1.tlog new file mode 100644 index 0000000..79c48be Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.command.1.tlog new file mode 100644 index 0000000..997ea62 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.read.1.tlog new file mode 100644 index 0000000..824bf8f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.write.1.tlog new file mode 100644 index 0000000..548a02d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..f4bf17e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/2.3.23.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.23\Debug\2.3.23.exe +E:\allcode\c\king_instance\2.3.23\Debug\2.3.23.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/vc142.idb new file mode 100644 index 0000000..dd92df7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/vc142.pdb new file mode 100644 index 0000000..df00a9d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/源.obj new file mode 100644 index 0000000..6228cd9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.23/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/head.h b/初试笔记/王道数据结构题实现代码/2.3.23/head.h new file mode 100644 index 0000000..1188588 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/head.h @@ -0,0 +1,29 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; +void change(Linklist& l) { + Lnode* h = l->next; + l->next = NULL; + Lnode*n = l; + Lnode* q; + while (h) { + q = l->next; + while (q) { + if (q->data == h->data || q->data == -h->data) + break; + q = q->next; + } + if (!q) { + n->next = h; + h = h->next; + n = n->next; + n->next = NULL; + } + else + h = h->next; + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.23/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.23/源.cpp new file mode 100644 index 0000000..6ef0c73 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.23/源.cpp @@ -0,0 +1,22 @@ +#include"head.h" +int main(void) { + Lnode* L = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L; + int num[] = { 1,3,-6,8,6,7,-3 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + change(L); + p = L->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/.suo new file mode 100644 index 0000000..4aaa9b1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/Browse.VC.db new file mode 100644 index 0000000..f1878d2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/ipch/AutoPCH/1bb8bc59aa5dc3d0/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/ipch/AutoPCH/1bb8bc59aa5dc3d0/HEAD.ipch new file mode 100644 index 0000000..38a298d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/ipch/AutoPCH/1bb8bc59aa5dc3d0/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/ipch/AutoPCH/51eb098948d4b087/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/ipch/AutoPCH/51eb098948d4b087/源.ipch new file mode 100644 index 0000000..40d43a9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/.vs/2.3.6/v16/ipch/AutoPCH/51eb098948d4b087/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.sln b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.sln new file mode 100644 index 0000000..58bbace --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.6", "2.3.6.vcxproj", "{480B7771-EB53-4452-96BC-5AD18C234DCA}" +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 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Debug|x64.ActiveCfg = Debug|x64 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Debug|x64.Build.0 = Debug|x64 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Debug|x86.ActiveCfg = Debug|Win32 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Debug|x86.Build.0 = Debug|Win32 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Release|x64.ActiveCfg = Release|x64 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Release|x64.Build.0 = Release|x64 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Release|x86.ActiveCfg = Release|Win32 + {480B7771-EB53-4452-96BC-5AD18C234DCA}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {52E753C7-33CC-4A94-B8DE-4132E1353BD8} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj new file mode 100644 index 0000000..814face --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {480b7771-eb53-4452-96bc-5ad18c234dca} + My236 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/2.3.6.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.exe b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.exe new file mode 100644 index 0000000..28eaa80 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.ilk b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.ilk new file mode 100644 index 0000000..c4f9314 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.log b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.log new file mode 100644 index 0000000..56e6c14 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.6.vcxproj -> E:\allcode\c\king_instance\2.3.6\Debug\2.3.6.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.pdb b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.pdb new file mode 100644 index 0000000..be1b871 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/2.3.6.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/2.3.6.lastbuildstate new file mode 100644 index 0000000..8d23f0a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/2.3.6.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.6\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.command.1.tlog new file mode 100644 index 0000000..5535963 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.read.1.tlog new file mode 100644 index 0000000..f83e845 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.write.1.tlog new file mode 100644 index 0000000..90ee191 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.command.1.tlog new file mode 100644 index 0000000..7781e81 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.read.1.tlog new file mode 100644 index 0000000..4a9a9f5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.write.1.tlog new file mode 100644 index 0000000..504cc32 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..d39a1c4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/2.3.6.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.6\Debug\2.3.6.exe +E:\allcode\c\king_instance\2.3.6\Debug\2.3.6.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/vc142.idb new file mode 100644 index 0000000..ccaa80d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/vc142.pdb new file mode 100644 index 0000000..4ac5ae9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/源.obj new file mode 100644 index 0000000..c01d9d2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.6/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/head.h b/初试笔记/王道数据结构题实现代码/2.3.6/head.h new file mode 100644 index 0000000..1c71fbc --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/head.h @@ -0,0 +1,24 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +void Sort(Linklist& l) { + Lnode* p = l->next, * pre; + Lnode* r = p->next; + p->next = NULL; + p = r; + while (p) + { + r = p->next; + pre = l; + while (pre->next && pre->next->data < p->data) + pre = pre->next; + p->next = pre->next; + pre->next = p; + p = r; + } +} diff --git a/初试笔记/王道数据结构题实现代码/2.3.6/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.6/源.cpp new file mode 100644 index 0000000..a4b80ee --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.6/源.cpp @@ -0,0 +1,28 @@ +#include"head.h" +int main(void) { + Lnode* L = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L; + int num[] = { 1,-3,4,-8,6,7,-2 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + p = L->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + printf("\n"); + Sort(L); + p = L->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/.suo b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/.suo new file mode 100644 index 0000000..398455a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/Browse.VC.db new file mode 100644 index 0000000..e1b89d7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/ipch/AutoPCH/849f5d2177858e4e/源.ipch b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/ipch/AutoPCH/849f5d2177858e4e/源.ipch new file mode 100644 index 0000000..7640f4c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/ipch/AutoPCH/849f5d2177858e4e/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/ipch/AutoPCH/c12ddb1135c467a7/HEAD.ipch b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/ipch/AutoPCH/c12ddb1135c467a7/HEAD.ipch new file mode 100644 index 0000000..87f29a8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/.vs/2.3.9/v16/ipch/AutoPCH/c12ddb1135c467a7/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.sln b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.sln new file mode 100644 index 0000000..15b964a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.9", "2.3.9.vcxproj", "{CDC5267B-4990-4348-B11C-8EC1E492A73C}" +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 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Debug|x64.ActiveCfg = Debug|x64 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Debug|x64.Build.0 = Debug|x64 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Debug|x86.ActiveCfg = Debug|Win32 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Debug|x86.Build.0 = Debug|Win32 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Release|x64.ActiveCfg = Release|x64 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Release|x64.Build.0 = Release|x64 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Release|x86.ActiveCfg = Release|Win32 + {CDC5267B-4990-4348-B11C-8EC1E492A73C}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C3993513-304E-4E4D-901C-A835B9028573} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj new file mode 100644 index 0000000..a8aa900 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {cdc5267b-4990-4348-b11c-8ec1e492a73c} + My239 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj.filters b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj.user b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/2.3.9.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.exe b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.exe new file mode 100644 index 0000000..5871100 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.exe differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.ilk b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.ilk new file mode 100644 index 0000000..3dc8dea Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.log b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.log new file mode 100644 index 0000000..8389a45 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.log @@ -0,0 +1,2 @@ + 源.cpp + 2.3.9.vcxproj -> E:\allcode\c\king_instance\2.3.9\Debug\2.3.9.exe diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.pdb b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.pdb new file mode 100644 index 0000000..d5d1db1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/2.3.9.lastbuildstate b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/2.3.9.lastbuildstate new file mode 100644 index 0000000..9e88a67 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/2.3.9.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\2.3.9\| diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.command.1.tlog new file mode 100644 index 0000000..69cf70d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.read.1.tlog new file mode 100644 index 0000000..502f633 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.write.1.tlog new file mode 100644 index 0000000..2ea7977 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.command.1.tlog new file mode 100644 index 0000000..21ee73b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.read.1.tlog new file mode 100644 index 0000000..8aee791 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.write.1.tlog new file mode 100644 index 0000000..03acc7a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..504f0bf --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/2.3.9.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\2.3.9\Debug\2.3.9.exe +E:\allcode\c\king_instance\2.3.9\Debug\2.3.9.pdb diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/vc142.idb new file mode 100644 index 0000000..9262fc7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/vc142.pdb new file mode 100644 index 0000000..6ba20ff Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/Debug/源.obj b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/源.obj new file mode 100644 index 0000000..5e81843 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/2.3.9/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/head.h b/初试笔记/王道数据结构题实现代码/2.3.9/head.h new file mode 100644 index 0000000..57f87ea --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/head.h @@ -0,0 +1,25 @@ +#include +#include + +typedef struct Lnode { + int data; + struct Lnode* next; +}Lnode, * Linklist; + +void Print(Linklist& l) { + Lnode* min, * p; + while (l->next) + { + min = l; + p = l->next; + while (p->next) { + if (p->next->data < min->next->data) + min = p; + p = p->next; + } + printf("%d ", min->next->data); + p = min->next; + min->next = p->next; + free(p); + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/2.3.9/源.cpp b/初试笔记/王道数据结构题实现代码/2.3.9/源.cpp new file mode 100644 index 0000000..f448f6f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/2.3.9/源.cpp @@ -0,0 +1,23 @@ +#include"head.h" +int main(void) { + Lnode* L = (Linklist)malloc(sizeof(Lnode)); + Lnode* p = L; + int num[] = { 1,-3,4,-8,6,7,-2 }; + int len = sizeof(num) / sizeof(int); + for (int i = 0; i < len; i++) + { + Lnode* r = (Linklist)malloc(sizeof(Lnode)); + r->data = num[i]; + p->next = r; + p = r; + } + p->next = NULL; + p = L->next; + while (p) { + printf("%d ", p->data); + p = p->next; + } + printf("\n"); + Print(L); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/.suo new file mode 100644 index 0000000..f762088 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/Browse.VC.db new file mode 100644 index 0000000..ef0011f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/ipch/AutoPCH/135ce955bb36c726/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/ipch/AutoPCH/135ce955bb36c726/源.ipch new file mode 100644 index 0000000..31aa079 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/ipch/AutoPCH/135ce955bb36c726/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/ipch/AutoPCH/58244a94e54fb03f/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/ipch/AutoPCH/58244a94e54fb03f/HEAD.ipch new file mode 100644 index 0000000..5401382 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/.vs/4.3.10/v16/ipch/AutoPCH/58244a94e54fb03f/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.sln b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.sln new file mode 100644 index 0000000..03f9ec7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.10", "4.3.10.vcxproj", "{15461CF4-6F30-4FA5-8C74-B274A3D82122}" +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 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Debug|x64.ActiveCfg = Debug|x64 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Debug|x64.Build.0 = Debug|x64 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Debug|x86.ActiveCfg = Debug|Win32 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Debug|x86.Build.0 = Debug|Win32 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Release|x64.ActiveCfg = Release|x64 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Release|x64.Build.0 = Release|x64 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Release|x86.ActiveCfg = Release|Win32 + {15461CF4-6F30-4FA5-8C74-B274A3D82122}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5AFFC04B-698E-4551-8C09-C66D3CAA5A32} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj new file mode 100644 index 0000000..77dea7f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {15461cf4-6f30-4fa5-8c74-b274a3d82122} + My4310 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/4.3.10.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.exe b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.exe new file mode 100644 index 0000000..368221a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.ilk b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.ilk new file mode 100644 index 0000000..488ae51 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.log b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.log new file mode 100644 index 0000000..ddd3339 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.10.vcxproj -> E:\allcode\c\king_instance\4.3.10\Debug\4.3.10.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.pdb b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.pdb new file mode 100644 index 0000000..38ad431 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/4.3.10.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/4.3.10.lastbuildstate new file mode 100644 index 0000000..cdce8b4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/4.3.10.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.10\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.command.1.tlog new file mode 100644 index 0000000..1005165 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4903b58 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.write.1.tlog new file mode 100644 index 0000000..1d1c05d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.command.1.tlog new file mode 100644 index 0000000..05ad368 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.read.1.tlog new file mode 100644 index 0000000..e37cbf7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.write.1.tlog new file mode 100644 index 0000000..69d4fb3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..f5ada3c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/4.3.10.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.10\Debug\4.3.10.exe +E:\allcode\c\king_instance\4.3.10\Debug\4.3.10.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/vc142.idb new file mode 100644 index 0000000..567d4f2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/vc142.pdb new file mode 100644 index 0000000..c568501 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/源.obj new file mode 100644 index 0000000..bf7e3ac Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.10/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/head.h b/初试笔记/王道数据结构题实现代码/4.3.10/head.h new file mode 100644 index 0000000..97cc2e1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/head.h @@ -0,0 +1,27 @@ +#include +#include +typedef struct BtNode { + char data; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; +void Preorder(BiTree T,int n,int k) { + if (T != NULL) + { + if (n == k) + printf("%d ", T->data); + else + n++; + Preorder(T->lchild,n,k); + Preorder(T->rchild,n,k); + } +} +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.10/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.10/源.cpp new file mode 100644 index 0000000..0d4cd36 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.10/源.cpp @@ -0,0 +1,11 @@ +#define Max 8 +#include"head.h" +int main(void) { + int num[Max]; + for (int i = 1; i < Max; i++) + num[i] = i; + BiTree T; + Creattree(T, num, 0, Max); + Preorder(T, 0, 3); + return 0; +} diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/.suo new file mode 100644 index 0000000..835e644 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/Browse.VC.db new file mode 100644 index 0000000..0b41c23 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/ipch/AutoPCH/a2dce12778184dbc/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/ipch/AutoPCH/a2dce12778184dbc/HEAD.ipch new file mode 100644 index 0000000..56aa514 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/ipch/AutoPCH/a2dce12778184dbc/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/ipch/AutoPCH/bf25c098a45c7523/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/ipch/AutoPCH/bf25c098a45c7523/源.ipch new file mode 100644 index 0000000..ddb8e23 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/.vs/4.3.11/v16/ipch/AutoPCH/bf25c098a45c7523/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.sln b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.sln new file mode 100644 index 0000000..196a766 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.11", "4.3.11.vcxproj", "{056801F5-D459-4E06-AC22-8E1E282D8E21}" +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 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Debug|x64.ActiveCfg = Debug|x64 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Debug|x64.Build.0 = Debug|x64 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Debug|x86.ActiveCfg = Debug|Win32 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Debug|x86.Build.0 = Debug|Win32 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Release|x64.ActiveCfg = Release|x64 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Release|x64.Build.0 = Release|x64 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Release|x86.ActiveCfg = Release|Win32 + {056801F5-D459-4E06-AC22-8E1E282D8E21}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4EB48F6C-7413-4F80-802C-9A9DF4F4274B} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj new file mode 100644 index 0000000..0dffa11 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {056801f5-d459-4e06-ac22-8e1e282d8e21} + My4311 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/4.3.11.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.exe b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.exe new file mode 100644 index 0000000..41fa26c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.ilk b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.ilk new file mode 100644 index 0000000..1f5d859 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.log b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.log new file mode 100644 index 0000000..a3bb13d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.11.vcxproj -> E:\allcode\c\king_instance\4.3.11\Debug\4.3.11.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.pdb b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.pdb new file mode 100644 index 0000000..9b7a599 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/4.3.11.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/4.3.11.lastbuildstate new file mode 100644 index 0000000..a05a892 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/4.3.11.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.11\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.command.1.tlog new file mode 100644 index 0000000..6a9a4b7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.read.1.tlog new file mode 100644 index 0000000..16db824 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.write.1.tlog new file mode 100644 index 0000000..4e7754f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.command.1.tlog new file mode 100644 index 0000000..239110a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.read.1.tlog new file mode 100644 index 0000000..a169511 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.write.1.tlog new file mode 100644 index 0000000..5eade43 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..947cb02 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/4.3.11.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.11\Debug\4.3.11.exe +E:\allcode\c\king_instance\4.3.11\Debug\4.3.11.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/vc142.idb new file mode 100644 index 0000000..821bacd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/vc142.pdb new file mode 100644 index 0000000..1b70600 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/源.obj new file mode 100644 index 0000000..e8c725c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.11/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/head.h b/初试笔记/王道数据结构题实现代码/4.3.11/head.h new file mode 100644 index 0000000..69ac70c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/head.h @@ -0,0 +1,60 @@ +#include +#include +#define Max 6 + +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +void Creattree(BiTree & T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +void Delete(BiTree& T) { + if (T) + { + Delete(T->lchild); + Delete(T->rchild); + free(T); + T = NULL; + } +} +void Search(BiTree bt, int x) { + +} +void PreX(BiTree& T,int x) +{ + if (T) { + if (T->data == x) + Delete(T); + else { + PreX(T->lchild, x); + PreX(T->rchild, x); + } + } +} + +void Preorder(BiTree T) { + if (T != NULL) + { + printf(" %d", T->data); + Preorder(T->lchild); + Preorder(T->rchild); + } +} +void Inorder(BiTree T) { + if (T != NULL) + { + Inorder(T->lchild); + printf("%d", T->data); + Inorder(T->rchild); + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.11/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.11/源.cpp new file mode 100644 index 0000000..a335e0f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.11/源.cpp @@ -0,0 +1,16 @@ +#include "head.h" +/* +㷨˼:ݹÿһڵ㣬ҵֵΪxĽڵɾɾǸݺxΪɾ +*/ +int main(void) { + int num[Max]; + for (int i = 0; i < Max; i++) + num[i] = i+1; + BiTree T; + Creattree(T, num, 0, Max); + Preorder(T); + printf("\n"); + PreX(T, 3); + Preorder(T); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/.suo new file mode 100644 index 0000000..3479d2b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/Browse.VC.db new file mode 100644 index 0000000..e6f6390 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/ipch/AutoPCH/54e3b3553e0fba04/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/ipch/AutoPCH/54e3b3553e0fba04/源.ipch new file mode 100644 index 0000000..cf5760d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/ipch/AutoPCH/54e3b3553e0fba04/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/ipch/AutoPCH/d0478b6a4bdf86fd/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/ipch/AutoPCH/d0478b6a4bdf86fd/HEAD.ipch new file mode 100644 index 0000000..b66de3f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/.vs/4.3.12/v16/ipch/AutoPCH/d0478b6a4bdf86fd/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.sln b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.sln new file mode 100644 index 0000000..82c14f3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.12", "4.3.12.vcxproj", "{92C371B6-F6C7-47DD-B377-B32661E2E539}" +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 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Debug|x64.ActiveCfg = Debug|x64 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Debug|x64.Build.0 = Debug|x64 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Debug|x86.ActiveCfg = Debug|Win32 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Debug|x86.Build.0 = Debug|Win32 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Release|x64.ActiveCfg = Release|x64 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Release|x64.Build.0 = Release|x64 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Release|x86.ActiveCfg = Release|Win32 + {92C371B6-F6C7-47DD-B377-B32661E2E539}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {75D5D4B7-D52E-4656-BD1E-4A84EADC7576} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj new file mode 100644 index 0000000..2aa4de6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {92c371b6-f6c7-47dd-b377-b32661e2e539} + My4312 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/4.3.12.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.exe b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.exe new file mode 100644 index 0000000..f051376 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.ilk b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.ilk new file mode 100644 index 0000000..75c4284 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.log b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.log new file mode 100644 index 0000000..41541da --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.12.vcxproj -> E:\allcode\c\king_instance\4.3.12\Debug\4.3.12.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.pdb b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.pdb new file mode 100644 index 0000000..4997608 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/4.3.12.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/4.3.12.lastbuildstate new file mode 100644 index 0000000..7bf4f69 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/4.3.12.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.12\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.command.1.tlog new file mode 100644 index 0000000..caa4aec Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2f587a2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.write.1.tlog new file mode 100644 index 0000000..7afd8bb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.command.1.tlog new file mode 100644 index 0000000..1e987d9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.read.1.tlog new file mode 100644 index 0000000..79dfc6f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.write.1.tlog new file mode 100644 index 0000000..2e27f3c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..1220025 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/4.3.12.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.12\Debug\4.3.12.exe +E:\allcode\c\king_instance\4.3.12\Debug\4.3.12.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/vc142.idb new file mode 100644 index 0000000..88a639a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/vc142.pdb new file mode 100644 index 0000000..3516dd1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/源.obj new file mode 100644 index 0000000..8bf847b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.12/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/head.h b/初试笔记/王道数据结构题实现代码/4.3.12/head.h new file mode 100644 index 0000000..c80212f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/head.h @@ -0,0 +1,28 @@ +#include +#include +#define Max 20 + +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +int Print_xparents(BiTree T,int x) { + if (T) + if (Print_xparents(T->lchild,x) || Print_xparents(T->rchild,x)|| T->data == x) + { + printf("%d ", T->data); + return 1; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.12/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.12/源.cpp new file mode 100644 index 0000000..9f53cc1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.12/源.cpp @@ -0,0 +1,13 @@ +#include"head.h" + +int main(void) { + + int num[Max]; + for (int i = 0; i < Max; i++) + num[i] = i + 1; + BiTree T; + Creattree(T, num, 0, Max); + + Print_xparents(T, 18); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/.suo new file mode 100644 index 0000000..f1be9ab Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/Browse.VC.db new file mode 100644 index 0000000..8d635d4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/ipch/AutoPCH/e9c272f700ca69a2/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/ipch/AutoPCH/e9c272f700ca69a2/HEAD.ipch new file mode 100644 index 0000000..fd0695c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/ipch/AutoPCH/e9c272f700ca69a2/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/ipch/AutoPCH/fc2847c6584eef31/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/ipch/AutoPCH/fc2847c6584eef31/源.ipch new file mode 100644 index 0000000..d5d45cb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/.vs/4.3.13/v16/ipch/AutoPCH/fc2847c6584eef31/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.sln b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.sln new file mode 100644 index 0000000..2b7fbd5 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.13", "4.3.13.vcxproj", "{06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}" +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 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Debug|x64.ActiveCfg = Debug|x64 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Debug|x64.Build.0 = Debug|x64 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Debug|x86.ActiveCfg = Debug|Win32 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Debug|x86.Build.0 = Debug|Win32 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Release|x64.ActiveCfg = Release|x64 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Release|x64.Build.0 = Release|x64 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Release|x86.ActiveCfg = Release|Win32 + {06DA8E06-FBB5-4D25-A2B0-C7FCC0345985}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F20A8068-C365-4939-8D90-1FAD47CC422C} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj new file mode 100644 index 0000000..460afb6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {06da8e06-fbb5-4d25-a2b0-c7fcc0345985} + My4313 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/4.3.13.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.exe b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.exe new file mode 100644 index 0000000..baa743b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.ilk b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.ilk new file mode 100644 index 0000000..21e6df6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.log b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.log new file mode 100644 index 0000000..3d76fc6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.13.vcxproj -> E:\allcode\c\king_instance\4.3.13\Debug\4.3.13.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.pdb b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.pdb new file mode 100644 index 0000000..03b3016 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/4.3.13.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/4.3.13.lastbuildstate new file mode 100644 index 0000000..8d34463 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/4.3.13.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.13\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d0d4a45 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.read.1.tlog new file mode 100644 index 0000000..f42da4c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.write.1.tlog new file mode 100644 index 0000000..fb881b0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.command.1.tlog new file mode 100644 index 0000000..ca9210f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.read.1.tlog new file mode 100644 index 0000000..67e7651 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.write.1.tlog new file mode 100644 index 0000000..689ba74 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..886a6ef --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/4.3.13.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.13\Debug\4.3.13.exe +E:\allcode\c\king_instance\4.3.13\Debug\4.3.13.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/vc142.idb new file mode 100644 index 0000000..7ac6607 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/vc142.pdb new file mode 100644 index 0000000..08b93a6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/源.obj new file mode 100644 index 0000000..08439a6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.13/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/head.h b/初试笔记/王道数据结构题实现代码/4.3.13/head.h new file mode 100644 index 0000000..3260731 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/head.h @@ -0,0 +1,29 @@ +#include +#include +#define Max 20 + +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +int Ancestor(BiTree root, BiTree p, BiTree q, BiTree &r) { + if (!root) + return 0; + if (Ancestor(root->lchild, p, q, r) || Ancestor(root->rchild, p, q, r)) + { + r = root; + return 0; + } + return root == p || root == q ? 1 : 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.13/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.13/源.cpp new file mode 100644 index 0000000..c06c003 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.13/源.cpp @@ -0,0 +1,16 @@ +#include"head.h" +int main(void) { + + int num[Max]; + for (int i = 0; i < Max; i++) + num[i] = i + 1; + BiTree T; + Creattree(T, num, 0, Max); + BiTree p = T->lchild->lchild->lchild; + BiTree q = T->lchild->lchild->rchild->lchild; + BtNode* r = NULL; + Ancestor(T, p, q, r); + printf("%d ", r->data); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/.suo new file mode 100644 index 0000000..f96304d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/Browse.VC.db new file mode 100644 index 0000000..bad2f87 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/ipch/AutoPCH/e6ff21a18b11e883/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/ipch/AutoPCH/e6ff21a18b11e883/HEAD.ipch new file mode 100644 index 0000000..bcabf93 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/ipch/AutoPCH/e6ff21a18b11e883/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/ipch/AutoPCH/efbc3697fc3c0d9a/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/ipch/AutoPCH/efbc3697fc3c0d9a/源.ipch new file mode 100644 index 0000000..42751cf Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/.vs/4.3.14/v16/ipch/AutoPCH/efbc3697fc3c0d9a/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.sln b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.sln new file mode 100644 index 0000000..d59a645 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.14", "4.3.14.vcxproj", "{DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}" +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 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Debug|x64.ActiveCfg = Debug|x64 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Debug|x64.Build.0 = Debug|x64 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Debug|x86.ActiveCfg = Debug|Win32 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Debug|x86.Build.0 = Debug|Win32 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Release|x64.ActiveCfg = Release|x64 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Release|x64.Build.0 = Release|x64 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Release|x86.ActiveCfg = Release|Win32 + {DAB07414-5A0E-44C5-A3E6-78A2BFF01C1E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {166685E0-A0AD-4FE7-95C5-5CF89CBF9453} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj new file mode 100644 index 0000000..b4a4f33 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {dab07414-5a0e-44c5-a3e6-78a2bff01c1e} + My4314 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/4.3.14.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.exe b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.exe new file mode 100644 index 0000000..4b24a0b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.ilk b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.ilk new file mode 100644 index 0000000..58c9d3d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.log b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.log new file mode 100644 index 0000000..8721224 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.14.vcxproj -> E:\allcode\c\king_instance\4.3.14\Debug\4.3.14.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.pdb b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.pdb new file mode 100644 index 0000000..e01ce14 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/4.3.14.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/4.3.14.lastbuildstate new file mode 100644 index 0000000..774165c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/4.3.14.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.14\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.command.1.tlog new file mode 100644 index 0000000..84d702c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.read.1.tlog new file mode 100644 index 0000000..455ea14 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.write.1.tlog new file mode 100644 index 0000000..00c7fd1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.command.1.tlog new file mode 100644 index 0000000..aaea9a9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.read.1.tlog new file mode 100644 index 0000000..59b2276 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.write.1.tlog new file mode 100644 index 0000000..49d7107 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..a2029c9 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/4.3.14.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.14\Debug\4.3.14.exe +E:\allcode\c\king_instance\4.3.14\Debug\4.3.14.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/vc142.idb new file mode 100644 index 0000000..7b2c6c5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/vc142.pdb new file mode 100644 index 0000000..ecb53fa Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/源.obj new file mode 100644 index 0000000..f437faf Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.14/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/head.h b/初试笔记/王道数据结构题实现代码/4.3.14/head.h new file mode 100644 index 0000000..abcf240 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/head.h @@ -0,0 +1,47 @@ +#include +#include +#define Max 10 +#define Maxsize 100 +//ṹ +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +void Creattree(BiTree & T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} + +int Breath(BiTree T) { + if (!T) + return 0; + BiTree A[Maxsize]; + int front =-1, rear = -1; + int breath = 0, b=0; + BtNode *p; + A[++rear] = T; + int level = rear; + while (front < rear) { + p = A[++front]; + if (p->lchild) + A[++rear] = p->lchild; + if (p->rchild) + A[++rear] = p->rchild; + if (front == level) { + if (++b > breath) + breath = b; + b = 0; + level = rear;} + else + b++; + }//while + return breath; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.14/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.14/源.cpp new file mode 100644 index 0000000..917681c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.14/源.cpp @@ -0,0 +1,14 @@ +#include"head.h" +/* +㷨˼룺öжÿһбÿһĽڵֵ洢󷵻ֵ +*/ +int main(void) { + // + int num[Max]; + for (int i = 0; i < Max; i++) + num[i] = i + 1; + BiTree T; + Creattree(T, num, 0, Max); + printf("%d ", Breath(T)); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/.suo new file mode 100644 index 0000000..9bc6367 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/Browse.VC.db new file mode 100644 index 0000000..206a740 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/ipch/AutoPCH/5f75a2047c95df1f/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/ipch/AutoPCH/5f75a2047c95df1f/源.ipch new file mode 100644 index 0000000..b25e940 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/ipch/AutoPCH/5f75a2047c95df1f/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/ipch/AutoPCH/ef6c30b5a4834388/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/ipch/AutoPCH/ef6c30b5a4834388/HEAD.ipch new file mode 100644 index 0000000..3ef6bdb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/.vs/4.3.15/v16/ipch/AutoPCH/ef6c30b5a4834388/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.sln b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.sln new file mode 100644 index 0000000..bacda43 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.15", "4.3.15.vcxproj", "{83A98E00-4C78-42DE-B0C5-119AB03903AB}" +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 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Debug|x64.ActiveCfg = Debug|x64 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Debug|x64.Build.0 = Debug|x64 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Debug|x86.ActiveCfg = Debug|Win32 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Debug|x86.Build.0 = Debug|Win32 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Release|x64.ActiveCfg = Release|x64 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Release|x64.Build.0 = Release|x64 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Release|x86.ActiveCfg = Release|Win32 + {83A98E00-4C78-42DE-B0C5-119AB03903AB}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DA0643A4-65B3-4C4A-B8C0-47328A83E803} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj new file mode 100644 index 0000000..9af18d5 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {83a98e00-4c78-42de-b0c5-119ab03903ab} + My4315 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/4.3.15.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.exe b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.exe new file mode 100644 index 0000000..176491d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.ilk b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.ilk new file mode 100644 index 0000000..c214060 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.log b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.log new file mode 100644 index 0000000..5fe30ac --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.log @@ -0,0 +1,3 @@ + 源.cpp +E:\allcode\c\king_instance\4.3.15\源.cpp(6,6): warning C4101: “B”: 未引用的局部变量 + 4.3.15.vcxproj -> E:\allcode\c\king_instance\4.3.15\Debug\4.3.15.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.pdb b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.pdb new file mode 100644 index 0000000..d30d51a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/4.3.15.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/4.3.15.lastbuildstate new file mode 100644 index 0000000..dcd3580 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/4.3.15.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.15\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.command.1.tlog new file mode 100644 index 0000000..5ae2cfc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.read.1.tlog new file mode 100644 index 0000000..b7b0225 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f9e3e8e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.command.1.tlog new file mode 100644 index 0000000..cbc11c4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.read.1.tlog new file mode 100644 index 0000000..e3da85b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.write.1.tlog new file mode 100644 index 0000000..c728fa7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b7df57a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/4.3.15.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.15\Debug\4.3.15.exe +E:\allcode\c\king_instance\4.3.15\Debug\4.3.15.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/vc142.idb new file mode 100644 index 0000000..aaf80e2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/vc142.pdb new file mode 100644 index 0000000..8552dd0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/源.obj new file mode 100644 index 0000000..f915bfe Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.15/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/head.h b/初试笔记/王道数据结构题实现代码/4.3.15/head.h new file mode 100644 index 0000000..45db765 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/head.h @@ -0,0 +1,69 @@ +#include +#include +#define Max 7 +#define Maxsize 50 +//ṹ +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +typedef struct { + int data[Maxsize]; + int front, rear; +}SqQueue; +void InitQueue(SqQueue& q){ + q.rear = q.front = 0; +} +bool EnQueue(SqQueue& q, int x) { + if ((q.rear + 1) % Maxsize == q.front)return false; + q.data[q.rear] = x; + q.rear = (q.rear + 1) % Maxsize; + return true; +} +bool DeQueue(SqQueue& q, int& x) { + if (q.rear == q.front)return false; + x = q.data[q.front]; + q.front = (q.front + 1) % Maxsize; + return true; +} +bool isempty(SqQueue Q) { + return Q.rear == Q.front ? true : false; +} +void Creattree(BiTree & T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +void PretoPost(int pre[], int l1, int h1, int post[], int l2, int h2) { + int half; + if (h1 >= l1) { + post[h2] = pre[l1]; + half = (h1 - l1) / 2; + PretoPost(pre, l1 + 1, l1 + half, post, l2, l2 + half - 1); + PretoPost(pre, l1 + half + 1, h1, post, l2 + half, h2 - 1); + } +} +void Preorder2(BiTree T) { + if (T != NULL) + { + printf(" %d", T->data); + Preorder2(T->lchild); + Preorder2(T->rchild); + } +} + +void Preorder(BiTree T,SqQueue Q) { + if (T != NULL) + { + EnQueue(Q, T->data); + Preorder(T->lchild,Q); + Preorder(T->rchild,Q); + } +} diff --git a/初试笔记/王道数据结构题实现代码/4.3.15/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.15/源.cpp new file mode 100644 index 0000000..6edbca0 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.15/源.cpp @@ -0,0 +1,24 @@ +#include"head.h" +int main(void) { + int num[Max]; + int A[] = { 1,2,4,5,3,6,7 }; + printf("%d\n", sizeof(A) / sizeof(int)); + int B[Max]; + int x; + for (int i = 0; i < Max; i++) + num[i] = i + 1; + SqQueue Q; + InitQueue(Q); + BiTree T; + Creattree(T, num, 0, Max); + Preorder(T,Q); + while (!isempty(Q)) { + DeQueue(Q, x); + printf("%d ", x); + } + //PretoPost(A, 0, 6, B, 0, 6); + //for (int i = 0; i < Max; i++) + //printf("%d ", B[i]); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/.suo new file mode 100644 index 0000000..e288a55 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/Browse.VC.db new file mode 100644 index 0000000..d39829d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/ipch/AutoPCH/2459f788a3a0561/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/ipch/AutoPCH/2459f788a3a0561/HEAD.ipch new file mode 100644 index 0000000..ac07963 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/ipch/AutoPCH/2459f788a3a0561/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/ipch/AutoPCH/d9d2dc43d5ff08b8/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/ipch/AutoPCH/d9d2dc43d5ff08b8/源.ipch new file mode 100644 index 0000000..670e47d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/.vs/4.3.16/v16/ipch/AutoPCH/d9d2dc43d5ff08b8/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.sln b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.sln new file mode 100644 index 0000000..4cdb292 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.16", "4.3.16.vcxproj", "{1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}" +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 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Debug|x64.ActiveCfg = Debug|x64 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Debug|x64.Build.0 = Debug|x64 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Debug|x86.ActiveCfg = Debug|Win32 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Debug|x86.Build.0 = Debug|Win32 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Release|x64.ActiveCfg = Release|x64 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Release|x64.Build.0 = Release|x64 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Release|x86.ActiveCfg = Release|Win32 + {1AD88F2F-7FE7-4D3B-9219-19FA19D4BEB5}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {256C9F41-EA5D-4A1A-9AE2-C9920FA13535} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj new file mode 100644 index 0000000..7ca40bd --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {1ad88f2f-7fe7-4d3b-9219-19fa19d4beb5} + My4316 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj.filters new file mode 100644 index 0000000..7db2f3d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/4.3.16.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.exe b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.exe new file mode 100644 index 0000000..2b3eb32 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.ilk b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.ilk new file mode 100644 index 0000000..ca54bd8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.log b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.log new file mode 100644 index 0000000..a6bc4bf --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.16.vcxproj -> E:\allcode\c\king_instance\4.3.16\Debug\4.3.16.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.pdb b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.pdb new file mode 100644 index 0000000..b060efc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/4.3.16.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/4.3.16.lastbuildstate new file mode 100644 index 0000000..424d03e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/4.3.16.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.16\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.command.1.tlog new file mode 100644 index 0000000..bf648bf Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.read.1.tlog new file mode 100644 index 0000000..9a3ecab Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.write.1.tlog new file mode 100644 index 0000000..79c70f7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.command.1.tlog new file mode 100644 index 0000000..d11da8d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.read.1.tlog new file mode 100644 index 0000000..8efa67a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.write.1.tlog new file mode 100644 index 0000000..68ed1fb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..063e234 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/4.3.16.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.16\Debug\4.3.16.exe +E:\allcode\c\king_instance\4.3.16\Debug\4.3.16.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/vc142.idb new file mode 100644 index 0000000..94a5985 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/vc142.pdb new file mode 100644 index 0000000..20ef348 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/源.obj new file mode 100644 index 0000000..0b0f9a1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.16/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/head.h b/初试笔记/王道数据结构题实现代码/4.3.16/head.h new file mode 100644 index 0000000..48cc3ee --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/head.h @@ -0,0 +1,80 @@ +#include +#include +#define Max 11 +#define SMax 50 +//ṹ +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +typedef struct { + BiTree data[SMax]; + int top; +}Sqstack; + +void Creattree(BiTree & T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} + +void Initstack(Sqstack& s) { + s.top = -1; +} +bool Stackempty(Sqstack s) { + if (s.top == -1) + return true; + else + return false; +} +bool Push(Sqstack& s, BiTree x) +{ + if (s.top == SMax - 1) + return false; + s.data[++s.top] = x; + return false; +} +bool Pop(Sqstack& s, BiTree& x) +{ + if (s.top == -1) + return false; + x = s.data[s.top--]; + return true; +} +bool Gettop(Sqstack s, BiTree x) { + if (s.top == -1) + return false; + x = s.data[s.top]; + return true; +} +void Preorder(BiTree& T, BiTree& head) { + Sqstack S; + Initstack(S); + BiTree p = T, q = head; + while (p || !Stackempty(S)) { + if (p) { + if (!p->lchild && !p->rchild) { + q->rchild = p; + q = p; + } + Push(S, p); + p = p->lchild; + } + else + { + Pop(S, p); + if (p!= q) + p = p->rchild; + else + p = NULL; + } + } + q->lchild = NULL; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.16/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.16/源.cpp new file mode 100644 index 0000000..f76c20a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.16/源.cpp @@ -0,0 +1,20 @@ +#include"head.h" +/* +㷨˼룺÷ǵݹҶӽڵβ嵽ͷڵ֮󼴿ɡ +*/ +int main(void) { + // + int num[Max]; + for (int i = 0; i < Max; i++) + num[i] = i + 1; + BiTree T; + Creattree(T, num, 0, Max); + BiTree L = (BiTree)malloc(sizeof(BtNode)); + Preorder(T, L); + BiTree p = L->rchild; + while (p) { + printf("%d ", p->data); + p=p->rchild; + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/.suo new file mode 100644 index 0000000..e77027e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/Browse.VC.db new file mode 100644 index 0000000..6f807d5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/ipch/AutoPCH/4cc30b6c2f84cd5d/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/ipch/AutoPCH/4cc30b6c2f84cd5d/源.ipch new file mode 100644 index 0000000..a4950dd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/ipch/AutoPCH/4cc30b6c2f84cd5d/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/ipch/AutoPCH/cdd86fca280934fe/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/ipch/AutoPCH/cdd86fca280934fe/HEAD.ipch new file mode 100644 index 0000000..15008fe Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/.vs/4.3.17/v16/ipch/AutoPCH/cdd86fca280934fe/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.sln b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.sln new file mode 100644 index 0000000..b8113c3 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.17", "4.3.17.vcxproj", "{A1F04467-E0FF-415C-B75B-5D02A4CFC261}" +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 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Debug|x64.ActiveCfg = Debug|x64 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Debug|x64.Build.0 = Debug|x64 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Debug|x86.ActiveCfg = Debug|Win32 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Debug|x86.Build.0 = Debug|Win32 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Release|x64.ActiveCfg = Release|x64 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Release|x64.Build.0 = Release|x64 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Release|x86.ActiveCfg = Release|Win32 + {A1F04467-E0FF-415C-B75B-5D02A4CFC261}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EF86E2AA-9798-43B5-AC82-3601D0A0BB01} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj new file mode 100644 index 0000000..2dfa884 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {a1f04467-e0ff-415c-b75b-5d02a4cfc261} + My4317 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/4.3.17.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.exe b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.exe new file mode 100644 index 0000000..f987ecb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.ilk b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.ilk new file mode 100644 index 0000000..da40fb4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.log b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.log new file mode 100644 index 0000000..15837d1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.17.vcxproj -> E:\allcode\c\king_instance\4.3.17\Debug\4.3.17.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.pdb b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.pdb new file mode 100644 index 0000000..47e4c01 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/4.3.17.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/4.3.17.lastbuildstate new file mode 100644 index 0000000..cdfcb30 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/4.3.17.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.17\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.command.1.tlog new file mode 100644 index 0000000..748ecac Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.read.1.tlog new file mode 100644 index 0000000..316b473 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.write.1.tlog new file mode 100644 index 0000000..1cc73d7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.command.1.tlog new file mode 100644 index 0000000..815ce21 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.read.1.tlog new file mode 100644 index 0000000..0a1362b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.write.1.tlog new file mode 100644 index 0000000..65af03e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..be93b70 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/4.3.17.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.17\Debug\4.3.17.exe +E:\allcode\c\king_instance\4.3.17\Debug\4.3.17.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/vc142.idb new file mode 100644 index 0000000..9e7e2c1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/vc142.pdb new file mode 100644 index 0000000..abfa186 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/源.obj new file mode 100644 index 0000000..8eaf2cd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.17/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/head.h b/初试笔记/王道数据结构题实现代码/4.3.17/head.h new file mode 100644 index 0000000..8da59fe --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/head.h @@ -0,0 +1,24 @@ +#include +#include +#define Max1 5 +#define Max2 9 +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +int semble(BiTree T1, BiTree T2) { + if (!T1 || !T2) + return !T1 && !T2?1:0; + return semble(T1->lchild, T2->lchild) && semble(T1->rchild, T2->rchild) ? 1 : 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.17/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.17/源.cpp new file mode 100644 index 0000000..f9163b7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.17/源.cpp @@ -0,0 +1,19 @@ +#include"head.h" +/* +㷨˼룺õݹֲͬһ򷵻زƵϢûзزƵϢƣ +*/ +int main(void) { + int num[Max1]; + for (int i = 0; i < Max1; i++) + num[i] = i + 1; + BiTree T1; + Creattree(T1, num, 0, Max1); + int num2[Max2]; + for (int i = 0; i < Max2; i++) + num2[i] = i + 1; + BiTree T2; + Creattree(T2, num, 0, Max2); + printf("%4s \n", semble(T1, T2) ? "yes" : "no"); + + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/.suo new file mode 100644 index 0000000..fe72d2a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/Browse.VC.db new file mode 100644 index 0000000..9aad27b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/ipch/AutoPCH/4d0572562f8976cb/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/ipch/AutoPCH/4d0572562f8976cb/源.ipch new file mode 100644 index 0000000..d14d5cb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/ipch/AutoPCH/4d0572562f8976cb/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/ipch/AutoPCH/615624e445456024/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/ipch/AutoPCH/615624e445456024/HEAD.ipch new file mode 100644 index 0000000..ad4b830 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/.vs/4.3.19/v16/ipch/AutoPCH/615624e445456024/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.sln b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.sln new file mode 100644 index 0000000..38298be --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.19", "4.3.19.vcxproj", "{67EC4362-D95C-4F7D-885B-9AB85B77298C}" +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 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Debug|x64.ActiveCfg = Debug|x64 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Debug|x64.Build.0 = Debug|x64 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Debug|x86.ActiveCfg = Debug|Win32 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Debug|x86.Build.0 = Debug|Win32 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Release|x64.ActiveCfg = Release|x64 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Release|x64.Build.0 = Release|x64 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Release|x86.ActiveCfg = Release|Win32 + {67EC4362-D95C-4F7D-885B-9AB85B77298C}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0CB036B1-91F9-4D25-BAE6-65203DC6E7B6} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj new file mode 100644 index 0000000..4db9a40 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {67ec4362-d95c-4f7d-885b-9ab85b77298c} + My4319 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/4.3.19.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.exe b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.exe new file mode 100644 index 0000000..036a9f0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.ilk b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.ilk new file mode 100644 index 0000000..188c0dd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.log b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.log new file mode 100644 index 0000000..07bc7bb --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.19.vcxproj -> E:\allcode\c\king_instance\4.3.19\Debug\4.3.19.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.pdb b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.pdb new file mode 100644 index 0000000..5da7b0c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/4.3.19.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/4.3.19.lastbuildstate new file mode 100644 index 0000000..b5d8552 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/4.3.19.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.19\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.command.1.tlog new file mode 100644 index 0000000..3ac70fb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8001d4f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3940938 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.command.1.tlog new file mode 100644 index 0000000..3e46cb1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.read.1.tlog new file mode 100644 index 0000000..5fa7923 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.write.1.tlog new file mode 100644 index 0000000..bf50fca Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b022cfc --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/4.3.19.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.19\Debug\4.3.19.exe +E:\allcode\c\king_instance\4.3.19\Debug\4.3.19.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/vc142.idb new file mode 100644 index 0000000..381e170 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/vc142.pdb new file mode 100644 index 0000000..f9c6cc2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/源.obj new file mode 100644 index 0000000..088c178 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.19/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/head.h b/初试笔记/王道数据结构题实现代码/4.3.19/head.h new file mode 100644 index 0000000..df7f0ab --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/head.h @@ -0,0 +1,43 @@ +#include +#include +#define Max 5 +#define Maxsize 100 +//ṹ +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +int wpl(BiTree root) { + BiTree A[Maxsize]; + int rear = -1, front = -1; //¼ͷβڵ + int level = 1; //¼ + int w = 0; //¼Ȩֵ + BtNode* p = root; + A[++rear] = p; + int last = rear; + while (front < rear) { + p = A[++front]; + if (!p->lchild && !p->rchild) + w += p->data * level; + if (p->lchild) + A[++rear] = p->lchild; + if (p->rchild) + A[++rear] = p->rchild; + if (front == last) { + level++; + last = rear; + } + } + return w; +} diff --git a/初试笔记/王道数据结构题实现代码/4.3.19/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.19/源.cpp new file mode 100644 index 0000000..ba5fccc --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.19/源.cpp @@ -0,0 +1,15 @@ +#include"head.h" +/* +㷨˼룺÷ǵݹIJαÿһҶӽڵмȨͣ +*/ +int main(void) { + // + int num[Max]; + for (int i = 0; i < Max; i++) + num[i] = i + 1; + BiTree T; + Creattree(T, num, 0, Max); + + printf("%d ", wpl(T)); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/.suo new file mode 100644 index 0000000..5ef09e2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/Browse.VC.db new file mode 100644 index 0000000..36f4f5a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/ipch/AutoPCH/c26b25c93f6c903b/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/ipch/AutoPCH/c26b25c93f6c903b/源.ipch new file mode 100644 index 0000000..a7e5e3a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/.vs/4.3.4/v16/ipch/AutoPCH/c26b25c93f6c903b/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.sln b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.sln new file mode 100644 index 0000000..2106204 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.4", "4.3.4.vcxproj", "{8193DC10-1610-4909-808D-E54E8C7023B9}" +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 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Debug|x64.ActiveCfg = Debug|x64 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Debug|x64.Build.0 = Debug|x64 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Debug|x86.ActiveCfg = Debug|Win32 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Debug|x86.Build.0 = Debug|Win32 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Release|x64.ActiveCfg = Release|x64 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Release|x64.Build.0 = Release|x64 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Release|x86.ActiveCfg = Release|Win32 + {8193DC10-1610-4909-808D-E54E8C7023B9}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {26C6BAAE-F48E-4EA3-B58C-9628389C0D67} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj new file mode 100644 index 0000000..286c10e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {8193dc10-1610-4909-808d-e54e8c7023b9} + My434 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/4.3.4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.exe b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.exe new file mode 100644 index 0000000..b75aa25 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.ilk b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.ilk new file mode 100644 index 0000000..8273ee3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.log b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.log new file mode 100644 index 0000000..6589487 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.4.vcxproj -> E:\allcode\c\king_instance\4.3.4\Debug\4.3.4.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.pdb b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.pdb new file mode 100644 index 0000000..5b82df1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/4.3.4.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/4.3.4.lastbuildstate new file mode 100644 index 0000000..69b6386 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/4.3.4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.4\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..665ca39 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3f5475f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..bed6d76 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.command.1.tlog new file mode 100644 index 0000000..e5de225 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.read.1.tlog new file mode 100644 index 0000000..0e6a303 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.write.1.tlog new file mode 100644 index 0000000..e236fd8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..9655c2d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/4.3.4.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.4\Debug\4.3.4.exe +E:\allcode\c\king_instance\4.3.4\Debug\4.3.4.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/vc142.idb new file mode 100644 index 0000000..6868e89 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/vc142.pdb new file mode 100644 index 0000000..c40a97d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/源.obj new file mode 100644 index 0000000..752d5c0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.4/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/head.h b/初试笔记/王道数据结构题实现代码/4.3.4/head.h new file mode 100644 index 0000000..c59b753 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/head.h @@ -0,0 +1,75 @@ +#define Max 50 +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +typedef struct { + BiTree data[Max]; + int front, rear; +}SqQueue; +void InitQueue(SqQueue& q) +{ + q.rear = q.front = 0; +} +bool Isempty(SqQueue q) { + if (q.rear == q.front)return true; + else return false; +} +bool EnQueue(SqQueue& q, BiTree x) { + if ((q.rear + 1) % Max == q.front)return false; + q.data[q.rear] = x; + q.rear = (q.rear + 1) % Max; + return true; +} +bool DeQueue(SqQueue& q, BiTree& x) { + if (q.rear == q.front)return false; + x = q.data[q.front]; + q.front = (q.front + 1) % Max; + return true; +} +typedef struct { + BiTree data[Max]; + int top; +}Sqstack; +void Initstack(Sqstack& s) { + s.top = -1; +} +bool Stackempty(Sqstack s) { + if (s.top == -1) + return true; + else + return false; +} +bool Push(Sqstack& s, BiTree x) +{ + if (s.top == Max - 1) + return false; + s.data[++s.top] = x; + return false; +} +bool Pop(Sqstack& s, BiTree& x) +{ + if (s.top == -1) + return false; + x = s.data[s.top--]; + return true; +} +bool Gettop(Sqstack s, BiTree x) { + if (s.top == -1) + return false; + x = s.data[s.top]; + return true; +} + +void Creattree(BiTree & T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.4/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.4/源.cpp new file mode 100644 index 0000000..06024ad --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.4/源.cpp @@ -0,0 +1,35 @@ +#include +#include +#include "head.h" +void levelorder(BiTree T,Sqstack&S) { + if (T) { + SqQueue Q; + InitQueue(Q); + BtNode* p = T; + EnQueue(Q, p); + while (!Isempty(Q)) { + DeQueue(Q, p); + Push(S, p); + if (p->lchild) + EnQueue(Q, p->lchild); + if (p->rchild) + EnQueue(Q, p->rchild); + } + } +} +int main(void) { + int num[7]; + BtNode* p; + Sqstack S; + Initstack(S); + for (int i = 0; i < 7; i++) + num[i] = i; + BiTree T; + Creattree(T, num, 0, 7); + levelorder(T, S); + while (!Stackempty(S)) { + Pop(S, p); + printf("%d\n", p->data); + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/.suo new file mode 100644 index 0000000..1e9037e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/Browse.VC.db new file mode 100644 index 0000000..c90fdff Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/ipch/AutoPCH/77a8d18c14783b90/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/ipch/AutoPCH/77a8d18c14783b90/源.ipch new file mode 100644 index 0000000..2490ddb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/ipch/AutoPCH/77a8d18c14783b90/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/ipch/AutoPCH/f30d79b91d3b4ed8/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/ipch/AutoPCH/f30d79b91d3b4ed8/HEAD.ipch new file mode 100644 index 0000000..71a9c83 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/.vs/4.3.5/v16/ipch/AutoPCH/f30d79b91d3b4ed8/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.sln b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.sln new file mode 100644 index 0000000..faf8a58 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.5", "4.3.5.vcxproj", "{31E57A6F-FADC-4627-A8A2-EC3058E437CF}" +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 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Debug|x64.ActiveCfg = Debug|x64 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Debug|x64.Build.0 = Debug|x64 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Debug|x86.ActiveCfg = Debug|Win32 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Debug|x86.Build.0 = Debug|Win32 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Release|x64.ActiveCfg = Release|x64 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Release|x64.Build.0 = Release|x64 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Release|x86.ActiveCfg = Release|Win32 + {31E57A6F-FADC-4627-A8A2-EC3058E437CF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2D5E5351-652C-4D8A-BB3C-0729F6BDDA84} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj new file mode 100644 index 0000000..26dc0de --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {31e57a6f-fadc-4627-a8a2-ec3058e437cf} + My435 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/4.3.5.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.exe b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.exe new file mode 100644 index 0000000..c0d16f9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.ilk b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.ilk new file mode 100644 index 0000000..ee08094 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.log b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.log new file mode 100644 index 0000000..7f2ac22 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.log @@ -0,0 +1,3 @@ + 源.cpp +E:\allcode\c\king_instance\4.3.5\源.cpp(7,10): warning C4101: “p”: 未引用的局部变量 + 4.3.5.vcxproj -> E:\allcode\c\king_instance\4.3.5\Debug\4.3.5.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.pdb b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.pdb new file mode 100644 index 0000000..671991c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/4.3.5.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/4.3.5.lastbuildstate new file mode 100644 index 0000000..c4b0f07 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/4.3.5.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.5\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d6bc83a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..78a8bc8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..7a4c054 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.command.1.tlog new file mode 100644 index 0000000..a4bb1cc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.read.1.tlog new file mode 100644 index 0000000..43339c2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.write.1.tlog new file mode 100644 index 0000000..e1e863e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..883af12 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/4.3.5.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.5\Debug\4.3.5.exe +E:\allcode\c\king_instance\4.3.5\Debug\4.3.5.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/head.obj b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/head.obj new file mode 100644 index 0000000..b963c74 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/head.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/vc142.idb new file mode 100644 index 0000000..b1c7104 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/vc142.pdb new file mode 100644 index 0000000..3032b5f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/源.obj new file mode 100644 index 0000000..e2d182c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.5/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/head.h b/初试笔记/王道数据结构题实现代码/4.3.5/head.h new file mode 100644 index 0000000..7ca0b13 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/head.h @@ -0,0 +1,50 @@ +#define Max 50 +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +//ǵݹ +int Btdepth(BiTree T) { + if (!T) + return 0; + int front = 0, rear = 0; + int last = 1, level = 0; + BiTree Q[Max]; + Q[rear++] = T; + BiTree p; + while (front < rear) { + p = Q[front++]; + if (p->lchild) + Q[rear++] = p->lchild; + if (p->rchild) + Q[rear++] = p->rchild; + if (front == last) { + level++; + last = rear; + } + } + return level; +} +//ݹ +int Btdepth2(BiTree T) { + if (!T) + return 0; + int ldep = Btdepth2(T->lchild); + int rdep = Btdepth2(T->rchild); + if (ldep > rdep) + return ldep + 1; + else + return rdep + 1; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.5/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.5/源.cpp new file mode 100644 index 0000000..98caa2e --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.5/源.cpp @@ -0,0 +1,14 @@ +#include +#include +#include "head.h" +#define len 7 +int main(void) { + int num[len]; + BtNode* p; + for (int i = 0; i < len; i++) + num[i] = i; + BiTree T; + Creattree(T, num, 0, len); + int h=Btdepth(T); + return h; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/.suo new file mode 100644 index 0000000..8fa10f9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/Browse.VC.db new file mode 100644 index 0000000..39139f0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/ipch/AutoPCH/1e8dba5a4c50c262/HEAD.ipch b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/ipch/AutoPCH/1e8dba5a4c50c262/HEAD.ipch new file mode 100644 index 0000000..f65e787 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/ipch/AutoPCH/1e8dba5a4c50c262/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/ipch/AutoPCH/8be20007c2366ff1/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/ipch/AutoPCH/8be20007c2366ff1/源.ipch new file mode 100644 index 0000000..3e5a379 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/.vs/4.3.6/v16/ipch/AutoPCH/8be20007c2366ff1/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.sln b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.sln new file mode 100644 index 0000000..fed7d67 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.6", "4.3.6.vcxproj", "{30B01D04-F065-4D64-9C58-4E10CF4C688F}" +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 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Debug|x64.ActiveCfg = Debug|x64 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Debug|x64.Build.0 = Debug|x64 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Debug|x86.ActiveCfg = Debug|Win32 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Debug|x86.Build.0 = Debug|Win32 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Release|x64.ActiveCfg = Release|x64 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Release|x64.Build.0 = Release|x64 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Release|x86.ActiveCfg = Release|Win32 + {30B01D04-F065-4D64-9C58-4E10CF4C688F}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {633F0813-9E64-4ED7-8A11-204C5A57E4B6} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj new file mode 100644 index 0000000..6fb80b5 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {30b01d04-f065-4d64-9c58-4e10cf4c688f} + My436 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/4.3.6.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.exe b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.exe new file mode 100644 index 0000000..5aa3b8f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.ilk b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.ilk new file mode 100644 index 0000000..b676ed9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.log b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.log new file mode 100644 index 0000000..084a10d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.6.vcxproj -> E:\allcode\c\king_instance\4.3.6\Debug\4.3.6.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.pdb b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.pdb new file mode 100644 index 0000000..f9fa910 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/4.3.6.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/4.3.6.lastbuildstate new file mode 100644 index 0000000..366e8be --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/4.3.6.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.6\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.command.1.tlog new file mode 100644 index 0000000..67c562d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.read.1.tlog new file mode 100644 index 0000000..461cfe1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.write.1.tlog new file mode 100644 index 0000000..251ef26 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.command.1.tlog new file mode 100644 index 0000000..55b1a0c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.read.1.tlog new file mode 100644 index 0000000..3fbb15d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.write.1.tlog new file mode 100644 index 0000000..0615544 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..dadc3f2 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/4.3.6.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.6\Debug\4.3.6.exe +E:\allcode\c\king_instance\4.3.6\Debug\4.3.6.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/vc142.idb new file mode 100644 index 0000000..f6a45e0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/vc142.pdb new file mode 100644 index 0000000..945ab92 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/源.obj new file mode 100644 index 0000000..3c20f63 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.6/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/head.h b/初试笔记/王道数据结构题实现代码/4.3.6/head.h new file mode 100644 index 0000000..77ba7f7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/head.h @@ -0,0 +1,67 @@ +#include +#include +typedef struct BtNode { + char data; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; +BiTree Preincreat(char A[], char B[], int l1, int h1, int l2, int h2) { + BiTree root = (BiTree)malloc(sizeof(BtNode)); + root->data = A[l1]; + int i = l2; + for (; B[i] != root->data; i++); + int llen = i - l2; + int rlen = h2 - i; + if (llen) + root->lchild = Preincreat(A, B, l1 + 1, l1 + llen, l2, l2 + llen - 1); + else + root->lchild = NULL; + if (rlen) + root->rchild = Preincreat(A, B, h1 - rlen + 1, h1, h2 - rlen + 1, h2); + else + root->rchild = NULL; + return root; +} +void Creat(char A[], char B[], BiTree& T, int al, int ah, int bl, int bh) { + if (al <= ah&&al<=5&&al>=0) + { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[al]; + int i = bl; + while (i <= bh) { + if (B[i] == T->data) + break; + i++; + } + Creat(A, B, T->lchild, al + 1, al + i - bl, bl, i - 1); + Creat(A, B, T->rchild, al-bl + i + 1, ah, i+1, bh); + } + else + T = NULL; +} +void Creattree(BiTree& T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +//preorder +void Preorder(BiTree T) { + if (T != NULL) + { + printf("%c ", T->data); + Preorder(T->lchild); + Preorder(T->rchild); + } +} +void Inorder(BiTree T) { + if (T != NULL) + { + Inorder(T->lchild); + printf("%c ", T->data); + Inorder(T->rchild); + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.6/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.6/源.cpp new file mode 100644 index 0000000..2d953c2 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.6/源.cpp @@ -0,0 +1,15 @@ +#include"head.h" +#define Max 7 + +int main(void) { + char A[] = {'a','b','d','e','c','f'}; + char B[] = {'d','b','e','a','f','c'}; + //BiTree T=Preincreat(A,B,0,5,0,5); + BiTree T; + Creat(A, B, T, 0, 5, 0, 5); + + Preorder(T); + printf("\n"); + Inorder(T); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/.suo b/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/.suo new file mode 100644 index 0000000..bd16b6c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/Browse.VC.db new file mode 100644 index 0000000..825c520 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/ipch/AutoPCH/ee5b671dda687107/源.ipch b/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/ipch/AutoPCH/ee5b671dda687107/源.ipch new file mode 100644 index 0000000..6f433ae Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/.vs/4.3.8/v16/ipch/AutoPCH/ee5b671dda687107/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.sln b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.sln new file mode 100644 index 0000000..5e8568b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4.3.8", "4.3.8.vcxproj", "{D972E690-DAA7-4601-9B03-E47F613FBEA1}" +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 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Debug|x64.ActiveCfg = Debug|x64 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Debug|x64.Build.0 = Debug|x64 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Debug|x86.ActiveCfg = Debug|Win32 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Debug|x86.Build.0 = Debug|Win32 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Release|x64.ActiveCfg = Release|x64 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Release|x64.Build.0 = Release|x64 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Release|x86.ActiveCfg = Release|Win32 + {D972E690-DAA7-4601-9B03-E47F613FBEA1}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {440FE3B6-2D8D-412B-AC45-F08431C40C71} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj new file mode 100644 index 0000000..c057e42 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {d972e690-daa7-4601-9b03-e47f613fbea1} + My438 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj.filters b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj.user b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/4.3.8.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.exe b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.exe new file mode 100644 index 0000000..0f1eb6b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.exe differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.ilk b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.ilk new file mode 100644 index 0000000..c72f038 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.log b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.log new file mode 100644 index 0000000..202928b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.log @@ -0,0 +1,2 @@ + 源.cpp + 4.3.8.vcxproj -> E:\allcode\c\king_instance\4.3.8\Debug\4.3.8.exe diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.pdb b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.pdb new file mode 100644 index 0000000..7f84c00 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/4.3.8.lastbuildstate b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/4.3.8.lastbuildstate new file mode 100644 index 0000000..7d569cd --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/4.3.8.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\4.3.8\| diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e7f3d15 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.read.1.tlog new file mode 100644 index 0000000..e63f64a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f9964cd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.command.1.tlog new file mode 100644 index 0000000..aeac457 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.read.1.tlog new file mode 100644 index 0000000..03572cc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.write.1.tlog new file mode 100644 index 0000000..8e3d23f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..2467d8f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/4.3.8.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\4.3.8\Debug\4.3.8.exe +E:\allcode\c\king_instance\4.3.8\Debug\4.3.8.pdb diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/vc142.idb new file mode 100644 index 0000000..11d1cde Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/vc142.pdb new file mode 100644 index 0000000..7af3267 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/Debug/源.obj b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/源.obj new file mode 100644 index 0000000..d606ee9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/4.3.8/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/head.h b/初试笔记/王道数据结构题实现代码/4.3.8/head.h new file mode 100644 index 0000000..d8f33ec --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/head.h @@ -0,0 +1,29 @@ +#include +#include +#define Max 7 +typedef struct BtNode { + int data; + int size; + struct BtNode* lchild, * rchild; +}BtNode, * BiTree; + +void Creattree(BiTree & T, int A[], int n, int len) { + if (n >= len) + T = NULL; + else { + T = (BiTree)malloc(sizeof(BtNode)); + T->data = A[n]; + Creattree(T->lchild, A, 2 * n + 1, len); + Creattree(T->rchild, A, 2 * n + 2, len); + } +} +int Doublecount(BiTree T) { + if (T == NULL) + return 0; + int lsize = Doublecount(T->lchild); + int rsize = Doublecount(T->rchild); + if (T->lchild && T->rchild) + return 1 + lsize + rsize; + else + return lsize + rsize; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/4.3.8/源.cpp b/初试笔记/王道数据结构题实现代码/4.3.8/源.cpp new file mode 100644 index 0000000..3199832 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/4.3.8/源.cpp @@ -0,0 +1,13 @@ +#include"head.h" + +int main(void) { + int num[Max]; + for (int i = 1; i < Max; i++) + num[i] = i; + BiTree T; + Creattree(T, num, 0, Max); + printf("%d\n", Doublecount(T)); + + return 0; + +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/.suo b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/.suo new file mode 100644 index 0000000..1f0a1d6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/Browse.VC.db new file mode 100644 index 0000000..fa5de16 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/ipch/AutoPCH/8a99fbdeac5bacb0/HEAD.ipch b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/ipch/AutoPCH/8a99fbdeac5bacb0/HEAD.ipch new file mode 100644 index 0000000..ccd8726 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/ipch/AutoPCH/8a99fbdeac5bacb0/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/ipch/AutoPCH/d66ab339348342a7/源.ipch b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/ipch/AutoPCH/d66ab339348342a7/源.ipch new file mode 100644 index 0000000..8a88850 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/.vs/5.2.4/v16/ipch/AutoPCH/d66ab339348342a7/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.sln b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.sln new file mode 100644 index 0000000..0541410 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5.2.4", "5.2.4.vcxproj", "{73CC2202-4804-4BB5-B27B-493019817C33}" +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 + {73CC2202-4804-4BB5-B27B-493019817C33}.Debug|x64.ActiveCfg = Debug|x64 + {73CC2202-4804-4BB5-B27B-493019817C33}.Debug|x64.Build.0 = Debug|x64 + {73CC2202-4804-4BB5-B27B-493019817C33}.Debug|x86.ActiveCfg = Debug|Win32 + {73CC2202-4804-4BB5-B27B-493019817C33}.Debug|x86.Build.0 = Debug|Win32 + {73CC2202-4804-4BB5-B27B-493019817C33}.Release|x64.ActiveCfg = Release|x64 + {73CC2202-4804-4BB5-B27B-493019817C33}.Release|x64.Build.0 = Release|x64 + {73CC2202-4804-4BB5-B27B-493019817C33}.Release|x86.ActiveCfg = Release|Win32 + {73CC2202-4804-4BB5-B27B-493019817C33}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1DA55CCF-FCC0-4527-9E2A-0A9AD49903EC} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj new file mode 100644 index 0000000..a558a83 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {73cc2202-4804-4bb5-b27b-493019817c33} + My524 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj.filters b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj.user b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/5.2.4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.exe b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.exe new file mode 100644 index 0000000..f6bf415 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.exe differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.ilk b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.ilk new file mode 100644 index 0000000..96edd45 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.log b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.log new file mode 100644 index 0000000..2a833de --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.log @@ -0,0 +1,2 @@ + 源.cpp + 5.2.4.vcxproj -> E:\allcode\c\king_instance\5.2.4\Debug\5.2.4.exe diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.pdb b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.pdb new file mode 100644 index 0000000..e8f55d8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/5.2.4.lastbuildstate b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/5.2.4.lastbuildstate new file mode 100644 index 0000000..2a537b5 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/5.2.4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\5.2.4\| diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..dcf642b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..11f7861 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..9956dc7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.command.1.tlog new file mode 100644 index 0000000..c6f767b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.read.1.tlog new file mode 100644 index 0000000..a34f7e5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.write.1.tlog new file mode 100644 index 0000000..89ca93b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..6b3684d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/5.2.4.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\5.2.4\Debug\5.2.4.exe +E:\allcode\c\king_instance\5.2.4\Debug\5.2.4.pdb diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/vc142.idb new file mode 100644 index 0000000..3e008d1 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/vc142.pdb new file mode 100644 index 0000000..eaf0ef5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/Debug/源.obj b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/源.obj new file mode 100644 index 0000000..2f011cd Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.2.4/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/head.h b/初试笔记/王道数据结构题实现代码/5.2.4/head.h new file mode 100644 index 0000000..702268b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/head.h @@ -0,0 +1,67 @@ +#include +#include +#define Maxsize 5 +typedef struct { + char Vex[Maxsize]; + int Edge[Maxsize][Maxsize]; + int vexnum, arcnum; +}Mgraph; + +typedef struct Arcnode { + int adjvex; + struct Arcnode* next; +}Arcnode; +typedef struct Vnode{ + int data; + Arcnode* first; +}Vnode, Adjlist[Maxsize]; +typedef struct { + Adjlist V; + int vexnum, arcnum; +}Agraph; +/* +0->1 +1->0->3 +2->4 +3->1 +4->2 +*/ +void CreatGraph(Agraph& G) { + for (int i = 0; i < Maxsize; i++) { + G.V[i].data=i; + G.V[i].first = NULL; + } + Arcnode* p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[0].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[1].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[1].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[2].first= p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[3].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 2; + G.V[4].first = p; + p->next = NULL; +} +void Convert(Agraph& G, int arcs[Maxsize][Maxsize]) { + for (int i = 0; i < Maxsize; i++) { + Arcnode* p = G.V[i].first; + while (p) { + arcs[i][p->adjvex] = 1; + p = p->next; + }//while + }//for +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.2.4/源.cpp b/初试笔记/王道数据结构题实现代码/5.2.4/源.cpp new file mode 100644 index 0000000..1279490 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.2.4/源.cpp @@ -0,0 +1,14 @@ +#include "head.h" +int main(void) { + Agraph G; + CreatGraph(G); + int Arcs[5][5] = {}; + + Convert(G, Arcs); + for (int i = 0; i < Maxsize; i++) { + for (int j = 0; j < Maxsize; j++) + printf("%d ", Arcs[i][j]); + printf("\n"); + } + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/.suo b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/.suo new file mode 100644 index 0000000..5170ad4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/Browse.VC.db new file mode 100644 index 0000000..98e5748 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/ipch/AutoPCH/6bfa41831d518703/HEAD.ipch b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/ipch/AutoPCH/6bfa41831d518703/HEAD.ipch new file mode 100644 index 0000000..76252ff Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/ipch/AutoPCH/6bfa41831d518703/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/ipch/AutoPCH/ec1550210827b01a/源.ipch b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/ipch/AutoPCH/ec1550210827b01a/源.ipch new file mode 100644 index 0000000..254a767 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/.vs/5.3.2/v16/ipch/AutoPCH/ec1550210827b01a/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.sln b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.sln new file mode 100644 index 0000000..d3dc4e7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5.3.2", "5.3.2.vcxproj", "{D66F6014-97DB-4493-9147-80292BDAD9F2}" +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 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Debug|x64.ActiveCfg = Debug|x64 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Debug|x64.Build.0 = Debug|x64 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Debug|x86.ActiveCfg = Debug|Win32 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Debug|x86.Build.0 = Debug|Win32 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Release|x64.ActiveCfg = Release|x64 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Release|x64.Build.0 = Release|x64 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Release|x86.ActiveCfg = Release|Win32 + {D66F6014-97DB-4493-9147-80292BDAD9F2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EC0A98A1-D4CE-45D6-8E5C-C09722384332} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj new file mode 100644 index 0000000..d28182c --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {d66f6014-97db-4493-9147-80292bdad9f2} + My532 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj.filters b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj.user b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/5.3.2.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.exe b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.exe new file mode 100644 index 0000000..5331279 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.exe differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.ilk b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.ilk new file mode 100644 index 0000000..856d5c2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.log b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.log new file mode 100644 index 0000000..e53d2d2 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.log @@ -0,0 +1,2 @@ + 源.cpp + 5.3.2.vcxproj -> E:\allcode\c\king_instance\5.3.2\Debug\5.3.2.exe diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.pdb b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.pdb new file mode 100644 index 0000000..3f92afc Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/5.3.2.lastbuildstate b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/5.3.2.lastbuildstate new file mode 100644 index 0000000..c5c8810 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/5.3.2.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\5.3.2\| diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.command.1.tlog new file mode 100644 index 0000000..f4c12d8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..fab2f06 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..44588f4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.command.1.tlog new file mode 100644 index 0000000..3b482d7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.read.1.tlog new file mode 100644 index 0000000..dadaff9 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.write.1.tlog new file mode 100644 index 0000000..438b3c4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..13bbe7a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/5.3.2.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\5.3.2\Debug\5.3.2.exe +E:\allcode\c\king_instance\5.3.2\Debug\5.3.2.pdb diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/vc142.idb new file mode 100644 index 0000000..64c60d6 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/vc142.pdb new file mode 100644 index 0000000..8fb9951 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/Debug/源.obj b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/源.obj new file mode 100644 index 0000000..5f5e6e7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.2/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/head.h b/初试笔记/王道数据结构题实现代码/5.3.2/head.h new file mode 100644 index 0000000..1520d66 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/head.h @@ -0,0 +1,90 @@ +#include +#include +#define Maxversize 5 +typedef struct Arcnode { + int adjvex; + struct Arcnode* next; +}Arcnode; +typedef struct Vnode { + char data; + Arcnode* first; +}Vnode, Adjlist[Maxversize]; +typedef struct { + Adjlist V; + int vexnum, arcnum; +}Graph; +bool visited[Maxversize]; +void Dfs(Graph G, int v, int& Vnum, int& Enum) { + visited[v] = true; + ++Vnum; + Arcnode* w = G.V[v].first; + while (w) { + Enum++; + if(!visited[w->adjvex]) + Dfs(G, w->adjvex, Vnum, Enum); + w = w->next; + } +} +bool isTree(Graph& G) +{ + for (int i = 0; i < Maxversize; ++i) + visited[i] = false; + int Vnum = 0, Enum = 0; + Dfs(G, 1, Vnum, Enum); + if (Vnum == Maxversize && Enum == 2 * (Maxversize - 1)) + return true; + else + return false; +} +/* +0-1 +1-0-3 +2-4 +3-1-4 +4-2-3 +*/ +void CreatGraph(Graph& G) { + for (int i = 0; i < Maxversize; i++) { + G.V[i].data = 'a' + i; + G.V[i].first = NULL; + } + Arcnode* p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[0].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[1].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[1].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[2].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[3].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[3].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 2; + G.V[4].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[4].first->next = p; + p->next = NULL; +} +void Convert(Graph& G, int arcs[Maxversize][Maxversize]) { + for (int i = 0; i < Maxversize; i++) { + Arcnode* p = G.V[i].first; + while (p) { + arcs[i][p->adjvex] = 1; + p = p->next; + }//while + }//for +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.2/源.cpp b/初试笔记/王道数据结构题实现代码/5.3.2/源.cpp new file mode 100644 index 0000000..0b097e8 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.2/源.cpp @@ -0,0 +1,14 @@ +#include"head.h" +int main(void) { + Graph G; + CreatGraph(G); + int Arcs[Maxversize][Maxversize] = {}; + Convert(G, Arcs); + for (int i = 0; i < Maxversize; i++) { + for (int j = 0; j < Maxversize; j++) + printf("%d ", Arcs[i][j]); + printf("\n"); + } + printf("%3s ", isTree(G) ? "yes" : "no"); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/.suo b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/.suo new file mode 100644 index 0000000..c29b797 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/Browse.VC.db new file mode 100644 index 0000000..7e0da3e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/ipch/AutoPCH/aaa7cf2c1a3ae951/HEAD.ipch b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/ipch/AutoPCH/aaa7cf2c1a3ae951/HEAD.ipch new file mode 100644 index 0000000..85bb99d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/ipch/AutoPCH/aaa7cf2c1a3ae951/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/ipch/AutoPCH/afe8dd3290d2c888/源.ipch b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/ipch/AutoPCH/afe8dd3290d2c888/源.ipch new file mode 100644 index 0000000..ab8dbd0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/.vs/5.3.4/v16/ipch/AutoPCH/afe8dd3290d2c888/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.sln b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.sln new file mode 100644 index 0000000..4ee0171 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5.3.4", "5.3.4.vcxproj", "{92905744-8662-4BA9-AABF-1187BF85B24C}" +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 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Debug|x64.ActiveCfg = Debug|x64 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Debug|x64.Build.0 = Debug|x64 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Debug|x86.ActiveCfg = Debug|Win32 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Debug|x86.Build.0 = Debug|Win32 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Release|x64.ActiveCfg = Release|x64 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Release|x64.Build.0 = Release|x64 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Release|x86.ActiveCfg = Release|Win32 + {92905744-8662-4BA9-AABF-1187BF85B24C}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2F279698-5791-440A-94FE-B5FF84C74ECF} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj new file mode 100644 index 0000000..5f4d9ec --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {92905744-8662-4ba9-aabf-1187bf85b24c} + My534 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj.filters b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj.user b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/5.3.4.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.exe b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.exe new file mode 100644 index 0000000..6a3ce7a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.exe differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.ilk b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.ilk new file mode 100644 index 0000000..18fe6aa Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.log b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.log new file mode 100644 index 0000000..830c6fc --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.log @@ -0,0 +1,2 @@ + 源.cpp + 5.3.4.vcxproj -> E:\allcode\c\king_instance\5.3.4\Debug\5.3.4.exe diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.pdb b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.pdb new file mode 100644 index 0000000..b1e77db Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/5.3.4.lastbuildstate b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/5.3.4.lastbuildstate new file mode 100644 index 0000000..fa998c1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/5.3.4.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\5.3.4\| diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.command.1.tlog new file mode 100644 index 0000000..55840c3 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.read.1.tlog new file mode 100644 index 0000000..1c66a0b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.write.1.tlog new file mode 100644 index 0000000..0d45178 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.command.1.tlog new file mode 100644 index 0000000..b845d1a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.read.1.tlog new file mode 100644 index 0000000..5401101 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.write.1.tlog new file mode 100644 index 0000000..63c166a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..8c9700d --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/5.3.4.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\5.3.4\Debug\5.3.4.exe +E:\allcode\c\king_instance\5.3.4\Debug\5.3.4.pdb diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/vc142.idb new file mode 100644 index 0000000..b12ca9d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/vc142.pdb new file mode 100644 index 0000000..f07d33e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/Debug/源.obj b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/源.obj new file mode 100644 index 0000000..fa2fb0a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.4/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/head.h b/初试笔记/王道数据结构题实现代码/5.3.4/head.h new file mode 100644 index 0000000..ad50211 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/head.h @@ -0,0 +1,125 @@ +#include +#include +#define Maxversize 5 +#define Maxsize 100 +typedef struct { + int data[Maxsize]; + int front, rear; +}SqQueue; +void InitQueue(SqQueue& q) { + q.rear = q.front = 0; +} +bool EnQueue(SqQueue& q, int x) { + if ((q.rear + 1) % Maxsize == q.front)return false; + q.data[q.rear] = x; + q.rear = (q.rear + 1) % Maxsize; + return true; +} +bool DeQueue(SqQueue& q, int& x) { + if (q.rear == q.front)return false; + x = q.data[q.front]; + q.front = (q.front + 1) % Maxsize; + return true; +} +bool isempty(SqQueue Q) { + return Q.rear == Q.front ? true : false; +} +typedef struct Arcnode { + int adjvex; + struct Arcnode* next; +}Arcnode; +typedef struct Vnode { + char data; + Arcnode* first; +}Vnode, Adjlist[Maxversize]; +typedef struct { + Adjlist V; + int vexnum, arcnum; +}Graph; +bool visited[Maxversize]; +//ȱ +void Dfs(Graph G, int v) { + printf("%c ", G.V[v].data); + visited[v] = true; + for (Arcnode* w = G.V[v].first; w != NULL; w = w->next) + if (!visited[w->adjvex]) + Dfs(G, w->adjvex); +} +bool Dfstraverse(Graph G,int m,int n) { + for (int v = 0; v < Maxversize; ++v) + visited[v] = false; + Dfs(G, m); + return visited[n] ? true : false; +} +//ȱ +void Bfs(Graph G, int v) { + printf("%c ", G.V[v].data); + visited[v] = true; + SqQueue Q; + InitQueue(Q); + EnQueue(Q, v); + while (!isempty(Q)) { + DeQueue(Q, v); + for(Arcnode*w=G.V[v].first;w!=NULL;w=w->next) + if (!visited[w->adjvex]) { + printf("%c ", G.V[w->adjvex].data); + visited[w->adjvex] = true; + EnQueue(Q, w->adjvex); + }//if + }//while +} +bool Bfstraverse(Graph G,int m,int n) { + for (int i = 0; i < Maxversize; ++i) + visited[i] = false; + Bfs(G, m); + return visited[n] ? true : false; +} +/* +0->1->4 a->b->e +1->0->3 b->a->d +2->4 c->e +3->1->4 d->b->e +4->0->2->3 e->a->b->c +*/ +void CreatGraph(Graph& G) { + for (int i = 0; i < Maxversize; i++) { + G.V[i].data = 'a'+i; + G.V[i].first = NULL; + } + Arcnode* p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[0].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[0].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[1].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[1].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[2].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[3].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[3].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[4].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 2; + G.V[4].first->next = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[4].first->next->next = p; + p->next = NULL; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.4/源.cpp b/初试笔记/王道数据结构题实现代码/5.3.4/源.cpp new file mode 100644 index 0000000..11ae2f4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.4/源.cpp @@ -0,0 +1,9 @@ +#include "head.h" +int main(void) { + Graph G; + CreatGraph(G); + printf("%3s ", Bfstraverse(G, 1, 3) ? "yes" : "no"); + printf("\n"); + printf("%3s ", Dfstraverse(G, 1, 5) ? "yes" : "no"); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/.suo b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/.suo new file mode 100644 index 0000000..1e03772 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/Browse.VC.db new file mode 100644 index 0000000..ff2f6bb Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/ipch/AutoPCH/cd2e896bf88b973c/HEAD.ipch b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/ipch/AutoPCH/cd2e896bf88b973c/HEAD.ipch new file mode 100644 index 0000000..187716a Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/ipch/AutoPCH/cd2e896bf88b973c/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/ipch/AutoPCH/e1339a3c7213a8a3/源.ipch b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/ipch/AutoPCH/e1339a3c7213a8a3/源.ipch new file mode 100644 index 0000000..2b376d7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/.vs/5.3.5/v16/ipch/AutoPCH/e1339a3c7213a8a3/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.sln b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.sln new file mode 100644 index 0000000..3ffaf8b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5.3.5", "5.3.5.vcxproj", "{83A3FEE3-695D-4451-9AC0-D3903B800BB4}" +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 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Debug|x64.ActiveCfg = Debug|x64 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Debug|x64.Build.0 = Debug|x64 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Debug|x86.ActiveCfg = Debug|Win32 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Debug|x86.Build.0 = Debug|Win32 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Release|x64.ActiveCfg = Release|x64 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Release|x64.Build.0 = Release|x64 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Release|x86.ActiveCfg = Release|Win32 + {83A3FEE3-695D-4451-9AC0-D3903B800BB4}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3E040A10-3601-4622-8D95-F7E7D88DB051} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj new file mode 100644 index 0000000..2c15557 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {83a3fee3-695d-4451-9ac0-d3903b800bb4} + My535 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj.filters b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj.user b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/5.3.5.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.exe b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.exe new file mode 100644 index 0000000..3749445 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.exe differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.ilk b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.ilk new file mode 100644 index 0000000..d65a70f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.log b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.log new file mode 100644 index 0000000..9ab17e6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.log @@ -0,0 +1,2 @@ + 源.cpp + 5.3.5.vcxproj -> E:\allcode\c\king_instance\5.3.5\Debug\5.3.5.exe diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.pdb b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.pdb new file mode 100644 index 0000000..41c0c04 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/5.3.5.lastbuildstate b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/5.3.5.lastbuildstate new file mode 100644 index 0000000..c88804f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/5.3.5.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\5.3.5\| diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.command.1.tlog new file mode 100644 index 0000000..ec63b81 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..24ea079 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..38ff615 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.command.1.tlog new file mode 100644 index 0000000..788b8df Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.read.1.tlog new file mode 100644 index 0000000..f4ccdd2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.write.1.tlog new file mode 100644 index 0000000..d652a9f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..62eab6f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/5.3.5.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\5.3.5\Debug\5.3.5.exe +E:\allcode\c\king_instance\5.3.5\Debug\5.3.5.pdb diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/vc142.idb new file mode 100644 index 0000000..9148287 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/vc142.pdb new file mode 100644 index 0000000..1b66396 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/Debug/源.obj b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/源.obj new file mode 100644 index 0000000..26faeed Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/5.3.5/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/head.h b/初试笔记/王道数据结构题实现代码/5.3.5/head.h new file mode 100644 index 0000000..7aaf1f7 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/head.h @@ -0,0 +1,86 @@ +#include +#include +#define Maxversize 10 +typedef struct Arcnode { + int adjvex; + struct Arcnode* next; +}Arcnode; +typedef struct Vnode { + char data; + Arcnode* first; +}Vnode, Adjlist[Maxversize]; +typedef struct { + Adjlist V; + int vexnum, arcnum; +}Graph; +bool visited[Maxversize]; +void Findpath(Graph G, int u, int v, int path[], int d) { + int w, i; + Arcnode* p; + d++; + path[d] = u; + visited[u] = true; + if (u == v) + { + for (i = 1; i <= d; i++) + printf("%d ", path[i]); + printf("\n"); + } + p = G.V[u].first; + while (p) { + w = p->adjvex; + if (!visited[w]) + Findpath(G, w, v, path, d); + p = p->next; + } + visited[u] = false; +} +/* +0->1->4 a->b->e +1->0->3 b->a->d +2->4 c->e +3->1->4 d->b->e +4->0->2->3 e->a->b->c +*/ +void CreatGraph(Graph& G) { + for (int i = 0; i < Maxversize; i++) { + G.V[i].data = 'a' + i; + G.V[i].first = NULL; + } + Arcnode* p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[0].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[0].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[1].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[1].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[2].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[3].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[3].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[4].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 2; + G.V[4].first->next = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[4].first->next->next = p; + p->next = NULL; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/5.3.5/源.cpp b/初试笔记/王道数据结构题实现代码/5.3.5/源.cpp new file mode 100644 index 0000000..675437b --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/5.3.5/源.cpp @@ -0,0 +1,10 @@ +#include"head.h" +int main(void) { + for (int i = 0; i < Maxversize; ++i) + visited[i] = false; + int path[100]; + Graph G; + CreatGraph(G); + Findpath(G, 0,2, path, 0); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/.suo b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/.suo new file mode 100644 index 0000000..0eacb44 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/Browse.VC.db new file mode 100644 index 0000000..4adf290 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/ipch/AutoPCH/1e7f0c035fd6701f/源.ipch b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/ipch/AutoPCH/1e7f0c035fd6701f/源.ipch new file mode 100644 index 0000000..7d781b5 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/ipch/AutoPCH/1e7f0c035fd6701f/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/ipch/AutoPCH/aa2c3d9bbeede609/HEAD.ipch b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/ipch/AutoPCH/aa2c3d9bbeede609/HEAD.ipch new file mode 100644 index 0000000..7acc3ad Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/.vs/7.2/v16/ipch/AutoPCH/aa2c3d9bbeede609/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/7.2.sln b/初试笔记/王道数据结构题实现代码/7.2/7.2.sln new file mode 100644 index 0000000..883de38 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/7.2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "7.2", "7.2.vcxproj", "{4BC52D02-3249-4F11-B2AB-DE40A131A7AF}" +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 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Debug|x64.ActiveCfg = Debug|x64 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Debug|x64.Build.0 = Debug|x64 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Debug|x86.ActiveCfg = Debug|Win32 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Debug|x86.Build.0 = Debug|Win32 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Release|x64.ActiveCfg = Release|x64 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Release|x64.Build.0 = Release|x64 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Release|x86.ActiveCfg = Release|Win32 + {4BC52D02-3249-4F11-B2AB-DE40A131A7AF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {AA4492D2-AADB-4457-8C27-502BB30FD5B3} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj b/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj new file mode 100644 index 0000000..69b6ea1 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {4bc52d02-3249-4f11-b2ab-de40a131a7af} + My72 + 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 + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj.filters b/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj.filters new file mode 100644 index 0000000..5a0eb70 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj.filters @@ -0,0 +1,25 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj.user b/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/7.2.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.exe b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.exe new file mode 100644 index 0000000..b4d18ed Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.exe differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.ilk b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.ilk new file mode 100644 index 0000000..fc3827c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.log b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.log new file mode 100644 index 0000000..e1ffac4 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.log @@ -0,0 +1,3 @@ + head.c + 源.cpp + 7.2.vcxproj -> E:\allcode\c\king_instance\7.2\Debug\7.2.exe diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.pdb b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.pdb new file mode 100644 index 0000000..9383c49 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/7.2.lastbuildstate b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/7.2.lastbuildstate new file mode 100644 index 0000000..57e43f9 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/7.2.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\7.2\| diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.command.1.tlog new file mode 100644 index 0000000..cc75662 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..01dceae Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..4d48e75 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.command.1.tlog new file mode 100644 index 0000000..a127058 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.read.1.tlog new file mode 100644 index 0000000..afe6dfa Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.write.1.tlog new file mode 100644 index 0000000..96df13b Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..436d684 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/Debug/7.2.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +E:\allcode\c\king_instance\7.2\Debug\7.2.exe +E:\allcode\c\king_instance\7.2\Debug\7.2.pdb diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/head.obj b/初试笔记/王道数据结构题实现代码/7.2/Debug/head.obj new file mode 100644 index 0000000..2e19b22 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/head.obj differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/7.2/Debug/vc142.idb new file mode 100644 index 0000000..58cb869 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/7.2/Debug/vc142.pdb new file mode 100644 index 0000000..f3413a7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/Debug/源.obj b/初试笔记/王道数据结构题实现代码/7.2/Debug/源.obj new file mode 100644 index 0000000..90b96f0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/7.2/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/7.2/head.c b/初试笔记/王道数据结构题实现代码/7.2/head.c new file mode 100644 index 0000000..7e6db7f --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/head.c @@ -0,0 +1,41 @@ +#include +#include +void Insertsort(int A[], int n) { + int i, j; + for (i = 2; i <= n; i++) + if (A[i - 1] > A[i]) { + A[0] = A[i]; + for (j = i - 1; A[j] >A[0]; j--) + A[j + 1] = A[j]; + A[j + 1] = A[0]; + } +} +void Insertsort2(int A[], int n) { + int i, j, low, high, mid; + for (i = 2; i <= n; i++) { + A[0] = A[i]; + low = 1; high = i - 1; + while (low <= high) { + mid = (low + high) / 2; + if (A[mid] > A[0]) + high = mid - 1; + else + low = mid + 1; + } + for (j = i - 1; j >= high + 1; --j) + A[j + 1] = A[j]; + A[high + 1] = A[0]; + } + +} +void shellsort(int A[], int n) { + int dk, i, j; + for (dk = n / 2; dk >= 1; dk = dk / 2) + for (i = dk + 1; i <= n; ++i) + if (A[i] < A[i - dk]) { + A[0] =A[i]; + for (j = i - dk; j > 0 && A[0] < A[j]; j -= dk) + A[j + dk] = A[j]; + A[j + dk] = A[0]; + } +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/7.2/源.cpp b/初试笔记/王道数据结构题实现代码/7.2/源.cpp new file mode 100644 index 0000000..98f5071 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/7.2/源.cpp @@ -0,0 +1,11 @@ +#include"head.c" +int main(void) { + int num[] = { 0,3,5,2,7,4 }; + int len = sizeof(num) / sizeof(int); + //Insertsort(num, len - 1); + //Insertsort2(num, len-1); + shellsort(num, len - 1); + for (int i = 1; i < len; i++) + printf("%d ", num[i]); + return 0; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/ProjectSettings.json b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/ProjectSettings.json new file mode 100644 index 0000000..e257ff9 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": "无配置" +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/VSWorkspaceState.json b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..eb76881 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/VSWorkspaceState.json @@ -0,0 +1,7 @@ +{ + "ExpandedNodes": [ + "" + ], + "SelectedNode": "\\广度优先遍历.sln", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/slnx.sqlite b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/slnx.sqlite new file mode 100644 index 0000000..6c21480 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/slnx.sqlite differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/图优先遍历/v16/.suo b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/图优先遍历/v16/.suo new file mode 100644 index 0000000..b103ed7 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/图优先遍历/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/图优先遍历/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/图优先遍历/v16/Browse.VC.db new file mode 100644 index 0000000..8240b19 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/图优先遍历/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/.suo b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/.suo new file mode 100644 index 0000000..8ddc57f Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/.suo differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/Browse.VC.db b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/Browse.VC.db new file mode 100644 index 0000000..3de5a85 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/Browse.VC.db differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/346f420316ea5da/源.ipch b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/346f420316ea5da/源.ipch new file mode 100644 index 0000000..4c9b598 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/346f420316ea5da/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/68a8809d54419e65/HEAD.ipch b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/68a8809d54419e65/HEAD.ipch new file mode 100644 index 0000000..882bdd0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/68a8809d54419e65/HEAD.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/eb4197bc46efbd4c/源.ipch b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/eb4197bc46efbd4c/源.ipch new file mode 100644 index 0000000..2e50fb0 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/.vs/广度优先遍历/v16/ipch/AutoPCH/eb4197bc46efbd4c/源.ipch differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/vc142.idb b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/vc142.idb new file mode 100644 index 0000000..815e8c2 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/vc142.idb differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/vc142.pdb b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/vc142.pdb new file mode 100644 index 0000000..c2ad463 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/vc142.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.exe b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.exe new file mode 100644 index 0000000..9c40b48 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.exe differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.ilk b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.ilk new file mode 100644 index 0000000..244b74d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.ilk differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.log b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.log new file mode 100644 index 0000000..cd932ca --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.log @@ -0,0 +1,2 @@ + 源.cpp + 广度优先遍历.vcxproj -> E:\allcode\c\king_instance\图优先遍历\Debug\广度优先遍历.exe diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.pdb b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.pdb new file mode 100644 index 0000000..11c848c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.pdb differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.command.1.tlog b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.command.1.tlog new file mode 100644 index 0000000..5c2eb5d Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.read.1.tlog b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.read.1.tlog new file mode 100644 index 0000000..bf1c4a8 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.write.1.tlog b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8fbcb00 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/CL.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.command.1.tlog b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.command.1.tlog new file mode 100644 index 0000000..67acedf Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.command.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.read.1.tlog b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.read.1.tlog new file mode 100644 index 0000000..d6955a4 Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.read.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.write.1.tlog b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.write.1.tlog new file mode 100644 index 0000000..3efc59c Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/link.write.1.tlog differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/广度优先遍历.lastbuildstate b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/广度优先遍历.lastbuildstate new file mode 100644 index 0000000..5d070a6 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.tlog/广度优先遍历.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|E:\allcode\c\king_instance\图优先遍历\| diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.vcxproj.FileListAbsolute.txt b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..9742f19 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/广度优先遍历.vcxproj.FileListAbsolute.txt @@ -0,0 +1,4 @@ +E:\allcode\c\king_instance\广度优先遍历\Debug\广度优先遍历.exe +E:\allcode\c\king_instance\广度优先遍历\Debug\广度优先遍历.pdb +E:\allcode\c\king_instance\图优先遍历\Debug\广度优先遍历.exe +E:\allcode\c\king_instance\图优先遍历\Debug\广度优先遍历.pdb diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/源.obj b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/源.obj new file mode 100644 index 0000000..5f6057e Binary files /dev/null and b/初试笔记/王道数据结构题实现代码/图优先遍历/Debug/源.obj differ diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/head.h b/初试笔记/王道数据结构题实现代码/图优先遍历/head.h new file mode 100644 index 0000000..4c87341 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/head.h @@ -0,0 +1,128 @@ +#include +#include +#define Maxversize 5 +#define Maxsize 100 +typedef struct { + int data[Maxsize]; + int front, rear; +}SqQueue; +void InitQueue(SqQueue& q) { + q.rear = q.front = 0; +} +bool EnQueue(SqQueue& q, int x) { + if ((q.rear + 1) % Maxsize == q.front)return false; + q.data[q.rear] = x; + q.rear = (q.rear + 1) % Maxsize; + return true; +} +bool DeQueue(SqQueue& q, int& x) { + if (q.rear == q.front)return false; + x = q.data[q.front]; + q.front = (q.front + 1) % Maxsize; + return true; +} +bool isempty(SqQueue Q) { + return Q.rear == Q.front ? true : false; +} +typedef struct Arcnode { + int adjvex; + struct Arcnode* next; +}Arcnode; +typedef struct Vnode { + char data; + Arcnode* first; +}Vnode, Adjlist[Maxversize]; +typedef struct { + Adjlist V; + int vexnum, arcnum; +}Graph; +bool visited[Maxversize]; +//ȱ +void Dfs(Graph G, int v) { + printf("%c ", G.V[v].data); + visited[v] = true; + for (Arcnode* w = G.V[v].first; w != NULL; w = w->next) + if (!visited[w->adjvex]) + Dfs(G, w->adjvex); +} +void Dfstraverse(Graph G) { + for (int v = 0; v < Maxversize; ++v) + visited[v] = false; + for (int v = 0; v < Maxversize; ++v) + if (!visited[v]) + Dfs(G, v); +} +//ȱ +void Bfs(Graph G, int v, SqQueue Q) { + printf("%c ", G.V[v].data); + visited[v] = true; + EnQueue(Q, v); + while (!isempty(Q)) { + DeQueue(Q, v); + for(Arcnode*w=G.V[v].first;w!=NULL;w=w->next) + if (!visited[w->adjvex]) { + printf("%c ", G.V[w->adjvex].data); + visited[w->adjvex] = true; + EnQueue(Q, w->adjvex); + }//if + }//while +} +void Bfstraverse(Graph G) { + for (int i = 0; i < Maxversize; ++i) + visited[i] = false; + SqQueue Q; + InitQueue(Q); + for (int i = 0; i < Maxversize; ++i) + if (!visited[i]) + Bfs(G, i,Q); + +} +/* +0->1->4 a->b->e +1->0->3 b->a->d +2->4 c->e +3->1->4 d->b->e +4->0->2->3 e->a->b->c +*/ +void CreatGraph(Graph& G) { + for (int i = 0; i < Maxversize; i++) { + G.V[i].data = 'a'+i; + G.V[i].first = NULL; + } + Arcnode* p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[0].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[0].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[1].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[1].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[2].first = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 1; + G.V[3].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 4; + G.V[3].first->next = p; + p->next = NULL; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 0; + G.V[4].first = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 2; + G.V[4].first->next = p; + p = (Arcnode*)malloc(sizeof(Arcnode)); + p->adjvex = 3; + G.V[4].first->next->next = p; + p->next = NULL; +} \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.sln b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.sln new file mode 100644 index 0000000..cc801db --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "广度优先遍历", "广度优先遍历.vcxproj", "{01D82398-BA65-4416-A87D-402522CE9D14}" +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 + {01D82398-BA65-4416-A87D-402522CE9D14}.Debug|x64.ActiveCfg = Debug|x64 + {01D82398-BA65-4416-A87D-402522CE9D14}.Debug|x64.Build.0 = Debug|x64 + {01D82398-BA65-4416-A87D-402522CE9D14}.Debug|x86.ActiveCfg = Debug|Win32 + {01D82398-BA65-4416-A87D-402522CE9D14}.Debug|x86.Build.0 = Debug|Win32 + {01D82398-BA65-4416-A87D-402522CE9D14}.Release|x64.ActiveCfg = Release|x64 + {01D82398-BA65-4416-A87D-402522CE9D14}.Release|x64.Build.0 = Release|x64 + {01D82398-BA65-4416-A87D-402522CE9D14}.Release|x86.ActiveCfg = Release|Win32 + {01D82398-BA65-4416-A87D-402522CE9D14}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B76D0EBA-4333-4A24-926C-77255B83C6E1} + EndGlobalSection +EndGlobal diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj new file mode 100644 index 0000000..8b2dd52 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {01d82398-ba65-4416-a87d-402522ce9d14} + 广度优先遍历 + 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 + + + + + + + + + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj.filters b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj.filters new file mode 100644 index 0000000..ba4200a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;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/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj.user b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/广度优先遍历.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/初试笔记/王道数据结构题实现代码/图优先遍历/源.cpp b/初试笔记/王道数据结构题实现代码/图优先遍历/源.cpp new file mode 100644 index 0000000..c0c370a --- /dev/null +++ b/初试笔记/王道数据结构题实现代码/图优先遍历/源.cpp @@ -0,0 +1,9 @@ +#include "head.h" +int main(void) { + Graph G; + CreatGraph(G); + Bfstraverse(G); + printf("\n"); + Dfstraverse(G); + return 0; +} \ No newline at end of file diff --git a/初试笔记/真题/1999-2018真题合订版.pdf b/初试笔记/真题/1999-2018真题合订版.pdf new file mode 100644 index 0000000..a0dd585 Binary files /dev/null and b/初试笔记/真题/1999-2018真题合订版.pdf differ diff --git a/初试笔记/真题/2019.pdf b/初试笔记/真题/2019.pdf new file mode 100644 index 0000000..7c6f504 Binary files /dev/null and b/初试笔记/真题/2019.pdf differ diff --git a/初试笔记/真题/苏州大学-872-2020-真题回忆版.pdf b/初试笔记/真题/苏州大学-872-2020-真题回忆版.pdf new file mode 100644 index 0000000..ab90471 Binary files /dev/null and b/初试笔记/真题/苏州大学-872-2020-真题回忆版.pdf differ diff --git a/复试笔记/21届网络复试要求.pdf b/复试笔记/21届网络复试要求.pdf new file mode 100644 index 0000000..2f23e1b Binary files /dev/null and b/复试笔记/21届网络复试要求.pdf differ diff --git a/复试笔记/21届考生演练指南(第一版).pptx b/复试笔记/21届考生演练指南(第一版).pptx new file mode 100644 index 0000000..c2b58fd Binary files /dev/null and b/复试笔记/21届考生演练指南(第一版).pptx differ diff --git a/复试笔记/21笔试代码/第一题/24191.py b/复试笔记/21笔试代码/第一题/24191.py new file mode 100644 index 0000000..fd416bd --- /dev/null +++ b/复试笔记/21笔试代码/第一题/24191.py @@ -0,0 +1,17 @@ +def find_next(L): + length=len(L) + res=[] + for i in range(length): + flag=0 #flag + for j in range(i+1,length): + if L[j]>L[i]: + res.append(L[j]) + flag=1 + break + if flag==0: + res.append(None) + return res +if __name__=='__main__': + L=[2,3,5] + L=[5,2,3] + print(find_next(L)) diff --git a/复试笔记/21笔试代码/第三题/24191.py b/复试笔记/21笔试代码/第三题/24191.py new file mode 100644 index 0000000..945f943 --- /dev/null +++ b/复试笔记/21笔试代码/第三题/24191.py @@ -0,0 +1,20 @@ +def find_pair(L): + length=len(L) + mxmul=L[0]*L[1] + indext=(L[0],L[1]) + for i in range(length): + for j in range(i+1,length): + if L[i]*L[j]>=mxmul: + mxmul=L[i]*L[j] + indext=(L[i],L[j]) + indext=list(indext) + indext.sort() + return (indext[0],indext[1]) + + + + +if __name__=='__main__': + #L=[1,-1,0] + L=[-10,-3,5,6,-2] + print(find_pair(L)) diff --git a/复试笔记/21笔试代码/第二题/24191.py b/复试笔记/21笔试代码/第二题/24191.py new file mode 100644 index 0000000..601f219 --- /dev/null +++ b/复试笔记/21笔试代码/第二题/24191.py @@ -0,0 +1,10 @@ +def find_number(n): + res=[] + for i in range(n+1): + s=bin(i)[2:] #remove '0b' + if s.count('1')>s.count('0'): + res.append(i) + return res +if __name__=='__main__': + print(find_number(15)) + diff --git a/复试笔记/21笔试代码/第四题/24191.py b/复试笔记/21笔试代码/第四题/24191.py new file mode 100644 index 0000000..584bbdb --- /dev/null +++ b/复试笔记/21笔试代码/第四题/24191.py @@ -0,0 +1,19 @@ +def find_major(L): + length=len(L) + lst=[] + res=set() + for i in L: + for j in list(i): + lst.append(j) + for i in set(lst): + if lst.count(i)>length/2: + res.add(i) + if len(res)>0: + return res + + +if __name__=='__main__': + L=[{1},{1,2},{1}] + L=[{1},{2,3}] + print(find_major(L)) + diff --git a/复试笔记/Python 学习笔记(上) - 草莓君的妙妙屋.pdf b/复试笔记/Python 学习笔记(上) - 草莓君的妙妙屋.pdf new file mode 100644 index 0000000..4a1d4a3 Binary files /dev/null and b/复试笔记/Python 学习笔记(上) - 草莓君的妙妙屋.pdf differ diff --git a/复试笔记/Python 学习笔记(下) - 草莓君的妙妙屋.pdf b/复试笔记/Python 学习笔记(下) - 草莓君的妙妙屋.pdf new file mode 100644 index 0000000..e164a3f Binary files /dev/null and b/复试笔记/Python 学习笔记(下) - 草莓君的妙妙屋.pdf differ diff --git a/复试笔记/Python选择题240题.docx b/复试笔记/Python选择题240题.docx new file mode 100644 index 0000000..b75031b Binary files /dev/null and b/复试笔记/Python选择题240题.docx differ diff --git a/复试笔记/leecode部分习题/006Z字形变换.py b/复试笔记/leecode部分习题/006Z字形变换.py new file mode 100644 index 0000000..7f19176 --- /dev/null +++ b/复试笔记/leecode部分习题/006Z字形变换.py @@ -0,0 +1,19 @@ +class Solution: + def convert(self, s: str, numRows: int) -> str: + if numRows==1: + return s + s2='' + i=0 + for h in range(0,numRows): + j=h + while j int: + #利用数字转字符串再转数字的方法 + abs_x=int(str(abs(x))[::-1]) + if x > 0 and abs_x <= 2 ** 31 - 1: + return abs_x + if x < 0 and abs_x <= 2 ** 31: + return -abs_x + return 0 + '''#本人笨方法 + if x<10 and x>-10: + return x + flag=0 + if x<0: + x=-x + flag=-1 + y=0 + n=1 + while(x//(10**n)!=0): + n+=1 + for i in range(n-1,-1,-1): + y=y+x//(10**i)*10**(n-i-1) + x=x%(10**i) + if flag==-1: + y=-y + if y>2**31-1 or y<-2**31: + return 0 + return y + ''' +p1=Solution() +print(p1.reverse(123)) diff --git a/复试笔记/leecode部分习题/008字符串转换整数.py b/复试笔记/leecode部分习题/008字符串转换整数.py new file mode 100644 index 0000000..afebf6d --- /dev/null +++ b/复试笔记/leecode部分习题/008字符串转换整数.py @@ -0,0 +1,30 @@ +import re +class Solution: + def myAtoi(self, s: str) -> int: + ''' + #re简洁方法 + return max(min(int(*re.findall('^[\+\-]?\d+', s.lstrip())), 2**31 - 1), -2**31) + '''#本人方法 + s=s.strip() + flag=True + if len(s)==0: + return 0 + if s[0]=='-' or s[0]=='+': + if s[0]=='-': + flag=False + s=s[1:] + n=0 + for i in s: + if i<='9' and i>='0': + n+=1 + else: + break + num=0 if n==0 else int(s[0:n]) + if flag==True: + return min(2**31-1,num) + return max(-2**31,-num) + +p1=Solution() +print(p1.myAtoi("+-+21k")) + + diff --git a/复试笔记/leecode部分习题/009回文数.py b/复试笔记/leecode部分习题/009回文数.py new file mode 100644 index 0000000..cfade61 --- /dev/null +++ b/复试笔记/leecode部分习题/009回文数.py @@ -0,0 +1,9 @@ +class Solution: + def isPalindrome(self, x: int) -> bool: + s=str(x) + for i in range(int(len(s)/2)): + if s[i]!=s[len(s)-i-1]: + return False + return True +p1=Solution() +print(p1.isPalindrome(121)) diff --git a/复试笔记/leecode部分习题/011盛最多水的容器.py b/复试笔记/leecode部分习题/011盛最多水的容器.py new file mode 100644 index 0000000..53e7ce3 --- /dev/null +++ b/复试笔记/leecode部分习题/011盛最多水的容器.py @@ -0,0 +1,27 @@ +class Solution: + def maxArea(self, height) -> int: + '''#本人超时代码 + num=0 + h=0 + for i in range(len(height)): + for j in range(len(height)-1,i-1,-1): + th=min(height[i],height[j]) + if th>h: + tnum=(j-i)*th + if tnum>num: + num=tnum + h=th + return num + ''' + #双指针法 + i, j, res = 0, len(height) - 1, 0 + while i < j: + if height[i] < height[j]: + res = max(res, height[i] * (j - i)) + i += 1 + else: + res = max(res, height[j] * (j - i)) + j -= 1 + return res +p1=Solution() +print(p1.maxArea([1,8,6,2,5,4,8,3,7])) diff --git a/复试笔记/leecode部分习题/1002.py b/复试笔记/leecode部分习题/1002.py new file mode 100644 index 0000000..6623d76 --- /dev/null +++ b/复试笔记/leecode部分习题/1002.py @@ -0,0 +1,17 @@ +def find_use(A): + res=[] + for i in A[0]: + flag=1 + for j in A: + if i not in j: + flag=0 + break + if flag==1: + res.append(i) + + + return res + +if __name__=="__main__": + A=["bella","label","roller"] + print(find_use(A)) diff --git a/复试笔记/leecode部分习题/1078.py b/复试笔记/leecode部分习题/1078.py new file mode 100644 index 0000000..cad6810 --- /dev/null +++ b/复试笔记/leecode部分习题/1078.py @@ -0,0 +1,13 @@ +import re +def find_third(s,first,second): + #查找指定字符后的单词 + dest=re.findall(f'{first}\s{second}\s\w+',s) + print(dest) + res=[] + for i in dest: + res.append(i.split()[-1]) + print(res) +s = "we will we will rock you" +first = "we" +second = "will" +find_third(s,first,second) diff --git a/复试笔记/leecode部分习题/118.py b/复试笔记/leecode部分习题/118.py new file mode 100644 index 0000000..54b878d --- /dev/null +++ b/复试笔记/leecode部分习题/118.py @@ -0,0 +1,15 @@ +def gene_tri(num): + if num==1: + return [[1]] + if num==2: + return [[1],[1,1]] + res=[[1],[1,1]] + for i in range(2,num): + nrow=[1] + for j in range(i-1): + nrow.append(res[i-1][j]+res[i-1][j+1]) + nrow.append(1) + res.append(nrow) + return res +if __name__=='__main__': + print(gene_tri(5)) diff --git a/复试笔记/leecode部分习题/1337.py b/复试笔记/leecode部分习题/1337.py new file mode 100644 index 0000000..fa94cfa --- /dev/null +++ b/复试笔记/leecode部分习题/1337.py @@ -0,0 +1,16 @@ +def sort_army(mat,k): + res=[] + for i in range(len(mat)): + res.append((mat[i].count(1),i)) + res.sort(key=lambda x:x[0]) + row=[res[i][1] for i in range(k)] + return row +mat=[[1,1,0,0,0], + [1,1,1,1,0], + [1,0,0,0,0], + [1,1,0,0,0], + [1,1,1,1,1]] +print(sort_army(mat,3)) + +mat = [[1,0,0,0], [1,1,1,1], [1,0,0,0], [1,0,0,0]] +print(sort_army(mat,2)) diff --git a/复试笔记/leecode部分习题/1491去掉最低工资和最高工资后的工资平均值.py b/复试笔记/leecode部分习题/1491去掉最低工资和最高工资后的工资平均值.py new file mode 100644 index 0000000..1305910 --- /dev/null +++ b/复试笔记/leecode部分习题/1491去掉最低工资和最高工资后的工资平均值.py @@ -0,0 +1,6 @@ +class Solution: + def average(self, salary) -> float: + salary.sort() + return sum(salary[1:-1])/(len(salary)-2) +pl=Solution() +print(pl.average([4000,3000,1000,2000])) diff --git a/复试笔记/leecode部分习题/171.py b/复试笔记/leecode部分习题/171.py new file mode 100644 index 0000000..672cc14 --- /dev/null +++ b/复试笔记/leecode部分习题/171.py @@ -0,0 +1,9 @@ +def _171(s): + nums=0 + for i in range(1,len(s)+1): + num=ord(s[-i])-ord('A')+1 + nums+=num*(26**(i-1)) + return nums +if __name__=='__main__': + s="A" + print(_171(s)) diff --git a/复试笔记/leecode部分习题/215数组中的第K个最大元素.py b/复试笔记/leecode部分习题/215数组中的第K个最大元素.py new file mode 100644 index 0000000..236b5f2 --- /dev/null +++ b/复试笔记/leecode部分习题/215数组中的第K个最大元素.py @@ -0,0 +1,8 @@ +class Solution: + #在未排序的数组中找到第 k 个最大的元素。 + #请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 + def findKthLargest(self, nums, k: int) -> int: + nums.sort() + return nums[-k] +pl=Solution() +print(pl.findKthLargest([3,2,3,1,2,4,5,5,6],4)) diff --git a/复试笔记/leecode部分习题/283.py b/复试笔记/leecode部分习题/283.py new file mode 100644 index 0000000..4d4bbba --- /dev/null +++ b/复试笔记/leecode部分习题/283.py @@ -0,0 +1,10 @@ +def move_list(nums:list): + #调整数组顺序 + zero=nums.count(0) #统计0的个数 + for i in range(zero): #先删去数组中的0 + nums.remove(0) + nums.sort() + for i in range(zero): #再在末尾添加相同个数的0 + nums.append(0) + return nums +print(move_list([0,1,0,3,12])) diff --git a/复试笔记/leecode部分习题/476.py b/复试笔记/leecode部分习题/476.py new file mode 100644 index 0000000..650476f --- /dev/null +++ b/复试笔记/leecode部分习题/476.py @@ -0,0 +1,10 @@ +def _476(n): + num='0b' + for i in bin(n)[2:]: + if i=='0': + num=num+'1' + else: + num=num+'0' + return int(num,2) +if __name__=='__main__': + print(_476(1)) diff --git a/复试笔记/leecode部分习题/485.py b/复试笔记/leecode部分习题/485.py new file mode 100644 index 0000000..eedcab4 --- /dev/null +++ b/复试笔记/leecode部分习题/485.py @@ -0,0 +1,16 @@ +def count_1(lst): + mcnt=0 + length=len(lst) + for i in range(length): + if lst[i]==1: + cnt=1 + for j in range(i+1,length): + if lst[j]!=1: + break + cnt+=1 + if cnt>mcnt: + mcnt=cnt + return mcnt +if __name__=='__main__': + print(count_1([1,1,0,1,1,1])) + diff --git a/复试笔记/leecode部分习题/561.py b/复试笔记/leecode部分习题/561.py new file mode 100644 index 0000000..3a3e0e9 --- /dev/null +++ b/复试笔记/leecode部分习题/561.py @@ -0,0 +1,12 @@ +def _561(lst): + lst.sort() + res=[] + for i in range(len(lst)//2): + tem=[lst[2*i],lst[2*i+1]] + res.append(tem) + num=0 + for i in res: + num+=min(i) + return num +if __name__=='__main__': + print(_561( [1,4,3,2])) diff --git a/复试笔记/leecode部分习题/575.py b/复试笔记/leecode部分习题/575.py new file mode 100644 index 0000000..4ee59a3 --- /dev/null +++ b/复试笔记/leecode部分习题/575.py @@ -0,0 +1,5 @@ +def kandy_split(lst): + return min(len(set(lst)),int(len(lst)/2)) +if __name__=='__main__': + lst=[1,1,2,3] + print(kandy_split(lst)) diff --git a/复试笔记/leecode部分习题/657.py b/复试笔记/leecode部分习题/657.py new file mode 100644 index 0000000..2a159fe --- /dev/null +++ b/复试笔记/leecode部分习题/657.py @@ -0,0 +1,9 @@ +def _657(s): + if s.count('U')==s.count('D') and s.count('R')==s.count('L'): + return True + else: + return False +if __name__=='__main__': + s='UD' + s='LL' + print(_657(s)) diff --git a/复试笔记/leecode部分习题/748.py b/复试笔记/leecode部分习题/748.py new file mode 100644 index 0000000..1c22833 --- /dev/null +++ b/复试笔记/leecode部分习题/748.py @@ -0,0 +1,17 @@ +def _748(lst,words): + import re + word=re.findall('[a-z]',lst.lower()) + words.sort(key=lambda x:len(x)) + for i in words: + flag=1 + li=i.lower() + for j in set(word): + if li.count(j)words[1][i]''' + length=len(words) + for i in range(length): + A=words[i] + for j in range(i+1,length): + B=words[j] + n=0 + mlen=min(len(A),len(B)) + while n n): + return + # sum==n 找到了这样的一组数字 + if index < len(primes): + if sum == n: + if tuple(L) not in S: # 避免重复输出 + print(L) + S.add(tuple(L)) + L.append(primes[index]) + DFS(n, index, sum + primes[index], primes, L, S) + L.pop() + DFS(n, index + 1, sum, primes, L, S) + + plist = [i for i in range(n + 1) if judge_prime(i)] + DFS(n, 0, 0, plist, S=set()) +equal_prime(9) diff --git a/复试笔记/历年真题Python代码/05/052python.py b/复试笔记/历年真题Python代码/05/052python.py new file mode 100644 index 0000000..4723b1c --- /dev/null +++ b/复试笔记/历年真题Python代码/05/052python.py @@ -0,0 +1,36 @@ +def is_prime(n): + #判断n是否为素数 + if n<2: + return False + if n==2: + return True + top=int(n**0.5)+1 + for i in range(2,top): + if n%i==0: + return False + return True + +def n_split(num:int,res:list): + if num<2: + return + if is_prime(num): + res.append(num) + return + for i in range(num,1,-1): + if is_prime(i) and num-i>1: + res.append(i) + n_split(num-i,res) + return + +def main(): + res=[] + while True: + num=int(input("请输入待分裂的数字:")) + n_split(num,res) + print(res) + res.clear() + +if __name__=='__main__': + main() + + diff --git a/复试笔记/历年真题Python代码/05/word.txt b/复试笔记/历年真题Python代码/05/word.txt new file mode 100644 index 0000000..d62545a --- /dev/null +++ b/复试笔记/历年真题Python代码/05/word.txt @@ -0,0 +1,31 @@ +So +if +you +are +in + a +couple, +it +might +be +a + good + idea + to + check +if +you +both +are +on +same +page +about +money +before +bills + pile +up +on +the +kitchen \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/06/06.py b/复试笔记/历年真题Python代码/06/06.py new file mode 100644 index 0000000..62be53b --- /dev/null +++ b/复试笔记/历年真题Python代码/06/06.py @@ -0,0 +1,31 @@ + +def make_prime(n): + nums = [1] * n + nums[0], nums[1] = 0, 0 + for i in range(2, n): + if nums[i]: + for j in range(i * i, n, i): + nums[j] = 0 + return nums +def _find_prime_excloud_9(): + """ + ##### `2006`年复试上机题 + **要求:** + 找出`100`到`1000`内的不含`9`的素数,存到`result`文件中. + """ + + def not_has_9(x): + p = x + while p: + c = p % 10 + if c == 9: + return False + p = p // 10 + return True + + ls = make_prime(1000) + res = [str(i) for i in range(100, 1000) if ls[i] and not_has_9(i)] + file = open("_find_prime_excloud_9.txt", 'w', encoding='utf-8') + file.write('\n'.join(res)) + file.close() +_find_prime_excloud_9() diff --git a/复试笔记/历年真题Python代码/06/06python.py b/复试笔记/历年真题Python代码/06/06python.py new file mode 100644 index 0000000..9852dd4 --- /dev/null +++ b/复试笔记/历年真题Python代码/06/06python.py @@ -0,0 +1,22 @@ +def is_prime(n): + #判断n是否为素数 + edg=int(n**0.5)+1 + for i in range(2,edg): + if n%i==0: + return False + return True + +def write_file(): + #将合适的数字写入result文件中 + with open("result.txt",'w')as fp: + for i in range(100,1000): + if is_prime(i) and '9' not in str(i): + fp.write(str(i)+'\n') + fp.close() + +def main(): + #主函数 + write_file() + +if __name__=="__main__": + main() diff --git a/复试笔记/历年真题Python代码/06/_find_prime_excloud_9.txt b/复试笔记/历年真题Python代码/06/_find_prime_excloud_9.txt new file mode 100644 index 0000000..316c564 --- /dev/null +++ b/复试笔记/历年真题Python代码/06/_find_prime_excloud_9.txt @@ -0,0 +1,89 @@ +101 +103 +107 +113 +127 +131 +137 +151 +157 +163 +167 +173 +181 +211 +223 +227 +233 +241 +251 +257 +263 +271 +277 +281 +283 +307 +311 +313 +317 +331 +337 +347 +353 +367 +373 +383 +401 +421 +431 +433 +443 +457 +461 +463 +467 +487 +503 +521 +523 +541 +547 +557 +563 +571 +577 +587 +601 +607 +613 +617 +631 +641 +643 +647 +653 +661 +673 +677 +683 +701 +727 +733 +743 +751 +757 +761 +773 +787 +811 +821 +823 +827 +853 +857 +863 +877 +881 +883 +887 \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/06/result.txt b/复试笔记/历年真题Python代码/06/result.txt new file mode 100644 index 0000000..6b69123 --- /dev/null +++ b/复试笔记/历年真题Python代码/06/result.txt @@ -0,0 +1,89 @@ +101 +103 +107 +113 +127 +131 +137 +151 +157 +163 +167 +173 +181 +211 +223 +227 +233 +241 +251 +257 +263 +271 +277 +281 +283 +307 +311 +313 +317 +331 +337 +347 +353 +367 +373 +383 +401 +421 +431 +433 +443 +457 +461 +463 +467 +487 +503 +521 +523 +541 +547 +557 +563 +571 +577 +587 +601 +607 +613 +617 +631 +641 +643 +647 +653 +661 +673 +677 +683 +701 +727 +733 +743 +751 +757 +761 +773 +787 +811 +821 +823 +827 +853 +857 +863 +877 +881 +883 +887 diff --git a/复试笔记/历年真题Python代码/07/07.py b/复试笔记/历年真题Python代码/07/07.py new file mode 100644 index 0000000..3df6782 --- /dev/null +++ b/复试笔记/历年真题Python代码/07/07.py @@ -0,0 +1,18 @@ +def find_prime(): + """ + ##### `2007`年复试上机题 + **要求:** + 把`10`到`1000`之间满足以下两个条件的数,存到`result.txt`文件中. + * 是素数. + * 它的反数也是素数,如:`123`的反数是`321`. + **程序:** + """ + + def get_reverse(x): + g, s, b = x % 10, x // 10 % 10, x // 100 % 10 + return g * 100 + s * 10 + b + + ls = make_prime(1000) + for i in range(10, len(ls)): + if ls[i] and ls[get_reverse(i)]: + print(i) diff --git a/复试笔记/历年真题Python代码/07/07python.py b/复试笔记/历年真题Python代码/07/07python.py new file mode 100644 index 0000000..1d73f6b --- /dev/null +++ b/复试笔记/历年真题Python代码/07/07python.py @@ -0,0 +1,19 @@ +def is_prime(n): + #判断是不是素数 + edg=int(n**0.5)+1 #设定除数的上限,该数的开平方向下取整加一 + for i in range(2,edg): + if n%i==0: + return False + return True + +def main(): + #实现主函数 + fp=open('result.txt','w') + for j in range(10,1000): + if is_prime(j) and is_prime(int(str(j)[::-1])): #判断数字与反数是否为素数 + fp.write(str(j)+'\n') + fp.close() + +if __name__=="__main__": + main() + diff --git a/复试笔记/历年真题Python代码/07/result.txt b/复试笔记/历年真题Python代码/07/result.txt new file mode 100644 index 0000000..9249772 --- /dev/null +++ b/复试笔记/历年真题Python代码/07/result.txt @@ -0,0 +1,52 @@ +11 +13 +17 +31 +37 +71 +73 +79 +97 +101 +107 +113 +131 +149 +151 +157 +167 +179 +181 +191 +199 +311 +313 +337 +347 +353 +359 +373 +383 +389 +701 +709 +727 +733 +739 +743 +751 +757 +761 +769 +787 +797 +907 +919 +929 +937 +941 +953 +967 +971 +983 +991 diff --git a/复试笔记/历年真题Python代码/08/08.py b/复试笔记/历年真题Python代码/08/08.py new file mode 100644 index 0000000..b0b0ddb --- /dev/null +++ b/复试笔记/历年真题Python代码/08/08.py @@ -0,0 +1,25 @@ +def _read_word(): + """ + **要求:`2008`年复试上机题** + * 用`IE`从`FTP`上下载`org.dat`,并保存在`D`盘的根目录中. + * 此文件中按文本方式存放了一段其他文章,其中有若干长度小于`15`的英文单词, + 单词之间用空格分开,无其他符号. + * 顺序读取这段文章的不同的单词(大小写敏感), + 同时在读取的过程中排除所有的单词`THE`以及变形,即这些单词不能出现在读取的结果中. + * 将读取的所有单词的首字母转大写后,输出`D`根目录下`new.txt`,每个单词一行. + **程序:** + """ + source = open('org.dat', encoding='utf-8') + words = [x.title() for x in ' '.join(source.readlines()).split()] + source.close() + word_times = {} + file = open('new.txt', 'a', encoding='utf-8') + for word in words: + if word == 'The': + continue + if word_times.get(word): + continue + word_times[word] = word_times.get(word, 0) + 1 + file.writelines(word + '\n') + file.close() +_read_word() diff --git a/复试笔记/历年真题Python代码/08/08python.py b/复试笔记/历年真题Python代码/08/08python.py new file mode 100644 index 0000000..d0f7990 --- /dev/null +++ b/复试笔记/历年真题Python代码/08/08python.py @@ -0,0 +1,38 @@ +def read_file(url): + #读取url文件 + with open(url,'r',encoding='utf-8')as fp: + nums=fp.read().split() + fp.close() + return nums + +def count_file(nums:list): + #统计nums列表中的单词个数 + #print(nums) + spe=['the','The','THe','THE'] + for i in nums: + if i in spe: + nums.remove(i) + return list(set(nums)) + +def write_file(new:list): + #写函数 + with open('new.txt','w')as fp: + for i in new: + fp.write(i.capitalize()+'\n') + fp.close() + + +def main(): + #主函数,实现函数 + ''' + with open('org.dat','w')as fp: + pass + fp.close() + ''' + nums=read_file('org.dat') + new=count_file(nums) + write_file(new) + +if __name__=='__main__': + main() + diff --git a/复试笔记/历年真题Python代码/08/new.txt b/复试笔记/历年真题Python代码/08/new.txt new file mode 100644 index 0000000..0c48a78 --- /dev/null +++ b/复试笔记/历年真题Python代码/08/new.txt @@ -0,0 +1,34 @@ +Chairman +Li +Which +Is +Our +To +Of +Yucai +I +School +Close +Hua +Am +Union +Middle +University +Students +I +Am +Li +Hua +Chairman +Of +Students’ +Union +Yucai +Middle +School +Which +Is +Close +To +Our +University diff --git a/复试笔记/历年真题Python代码/08/org.dat b/复试笔记/历年真题Python代码/08/org.dat new file mode 100644 index 0000000..dfb84f4 --- /dev/null +++ b/复试笔记/历年真题Python代码/08/org.dat @@ -0,0 +1,2 @@ +I am Li Hua Chairman of the Students’ Union of Yucai Middle School +which is close to our university diff --git a/复试笔记/历年真题Python代码/09/09.py b/复试笔记/历年真题Python代码/09/09.py new file mode 100644 index 0000000..6c10898 --- /dev/null +++ b/复试笔记/历年真题Python代码/09/09.py @@ -0,0 +1,29 @@ +def _to_num(): + """ + `2009`年复试上机题 + **要求:** + * 用`IE`浏览器从`FTP`上下载`org.dat`,并保存在`D`盘的根目录下. + * 此文件中按文本方式存放了一段其他文章,其中有若干长度小于`15` + 的十进制或八进制数字,数字之间用`,`分开,数字内部存在且仅存在空格. + * 八进制数以起始位`0`作为标示与十进制数区分. + * 顺序读取这些数字将他们转变为十进制数后按从大到小的顺序排序后, + 输出到`D`盘根目录下`new.txt`,每个数字一行. + `eg`:`_235_,34__2,_043_1_,1_3`,分别是:十进制`235`,十进制`342`, + 八进制`431`,十进制`13`,`_`代表空格. + **程序:** + """ + source = open('org.dat', encoding='utf-8') + words = [x.strip() for x in ','.join(source.readlines()).split(',')] + source.close() + ans = [] + for word in words: + word = word.replace(' ', '') + if word[0] == '0': + n = '0o' + word[1:] + ans.append(str(eval(n))) + else: + ans.append(word) + file = open('new.txt', 'w', encoding='utf-8') + file.write('\n'.join(ans)) + file.close() +_to_num() diff --git a/复试笔记/历年真题Python代码/09/09python.py b/复试笔记/历年真题Python代码/09/09python.py new file mode 100644 index 0000000..ef55347 --- /dev/null +++ b/复试笔记/历年真题Python代码/09/09python.py @@ -0,0 +1,43 @@ +import re +def read_file(): + #读取文件内容 + with open('org.dat','r')as fp: + nums=fp.read().split(',') + fp.close() + return nums + +def ten_num(nums:list): + for i in range(len(nums)): + nums[i]=nums[i].replace(' ','') + if nums[i][0]=='0': + nums[i]='0o'+nums[i][1:] + num=list(map(eval,nums)) + return num + ''' + if re.search('\s*0\s*[0-9]*\s*',nums[i]): + nums[i]=eight_to_ten(i) + ''' + +def write_file(num:list): + num=map(str,num) + with open('new.txt','w')as fp: + fp.write('\n'.join(num)) + ''' + for i in num: + fp.write(str(i)+'\n') + ''' + fp.close() + +def main(): + ''' + with open('org.dat','w')as fp: + pass + fp.close() + ''' + nums=read_file() + + num=ten_num(nums) + write_file(num) + +if __name__=='__main__': + main() diff --git a/复试笔记/历年真题Python代码/09/new.txt b/复试笔记/历年真题Python代码/09/new.txt new file mode 100644 index 0000000..6be08ca --- /dev/null +++ b/复试笔记/历年真题Python代码/09/new.txt @@ -0,0 +1,4 @@ +235 +342 +281 +13 \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/09/org.dat b/复试笔记/历年真题Python代码/09/org.dat new file mode 100644 index 0000000..f4dddcc --- /dev/null +++ b/复试笔记/历年真题Python代码/09/org.dat @@ -0,0 +1 @@ + 235 ,34 2, 043 1 ,1 3 \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/10/10.py b/复试笔记/历年真题Python代码/10/10.py new file mode 100644 index 0000000..2511630 --- /dev/null +++ b/复试笔记/历年真题Python代码/10/10.py @@ -0,0 +1,46 @@ +def _count_n(): + """ + `2010`年复试上机题 + **要求:** + * 从`FTP`上下载`make.exe`和`org.dat`,运行`make.exe`输入准考证后三位生成`data.txt` + ,文件为二进制编码. + * `data.txt`内存有`2048`个整数,其中前`n`个为非`0`数,后`2048-n`个数为`0`, + 将其读入数组,计算非零数的个数`n`. + * 选出`n`个数中的最大数和最小数. + * 选出`n`个数中最大素数. + * 将`n`个数从大到小排序,并平均分成三段(若`n`非`3`的整数倍,则不考虑最后的`1-2`个数), + 选出中间段的最大数和最小数. + **程序:** + """ + + def receive_data(): + file = open('data.txt', 'rb') + source = list(map(int, file.read().decode().split())) + file.close() + for i in range(len(source) - 1, -1, -1): + if source[i] != '0': + break + else: + del source[i] + source.sort(reverse=True) + return source + + def is_prime(x): + if x == 1: + return False + if x == 2: + return True + for i in range(2, int(x ** 0.5) + 1): + if x % i == 0: + return False + return True + + source = receive_data() + print('n = {}'.format(len(source))) + print('max = {} min = {}'.format(source[0], source[-1])) + for i in source: + if is_prime(i): + print('max_prime = {}'.format(i)) + break + r = len(source) // 3 + print('中间段的最大值为:{}'.format(source[r])) diff --git a/复试笔记/历年真题Python代码/10/10python.py b/复试笔记/历年真题Python代码/10/10python.py new file mode 100644 index 0000000..fc56c26 --- /dev/null +++ b/复试笔记/历年真题Python代码/10/10python.py @@ -0,0 +1,56 @@ +import struct +from random import randint +def read_file(): + #读取data里面的二进制文件 + with open("data.txt",'rb')as fp: + size=struct.calcsize('i') + f=fp.read(size) + nums=[] + while f: + num=struct.unpack('i',f)[0] + nums.append(num) + f=fp.read(size) + fp.close() + #print(nums) + return nums + +def is_prime(n): + #检测数字n是否为素数 + if n<2: + return False + if n==2: + return True + edg=int(n**0.5)+1 + for i in range(2,edg): + if n%i==0: + return False + return True + +def implement(nums:list): + #实现函数 + nums.sort(reverse=True) + n=len(nums)-nums.count(0) + print('非零数的个数为:%d'%n) + nums=nums[0:n] + print("最大的数为:%d,最小的数为:%d"%(nums[0],nums[n-1])) + for i in nums: + if is_prime(i): + print("最大的素数为:%d"%i) + break + s=int(n/3 if n/3==int(n/3) else n/3+1) #s代表每一段的个数 + print("中间段的最大数为:%d,最小数为:%d"%(nums[s],nums[2*s-1])) + +def main(): + + #生成二进制文件 + with open('data.txt','wb')as fq: + for i in range(2048): + num=struct.pack('i',randint(0,80)) + fq.write(num) + fq.close() + + nums=read_file() + implement(nums) + +if __name__=='__main__': + main() diff --git a/复试笔记/历年真题Python代码/10/data.txt b/复试笔记/历年真题Python代码/10/data.txt new file mode 100644 index 0000000..7ee9f78 Binary files /dev/null and b/复试笔记/历年真题Python代码/10/data.txt differ diff --git a/复试笔记/历年真题Python代码/11/11.py b/复试笔记/历年真题Python代码/11/11.py new file mode 100644 index 0000000..33fac4a --- /dev/null +++ b/复试笔记/历年真题Python代码/11/11.py @@ -0,0 +1,35 @@ + +def make_prime(n): + nums = [1] * n + nums[0], nums[1] = 0, 0 + for i in range(2, n): + if nums[i]: + for j in range(i * i, n, i): + nums[j] = 0 + return nums + +def print_1000_9999(): + """ + `2011`年复试上机题 + **要求:** + 输出`1000-9999`中满足以下条件的所有数: + * 该数是素数. + * 十位数和个位数组成的数是素数,百位数和个位数组成的数是素数. + * 个位数和百位数组成的数是素数,个位数和十位数组成的数是素数. 比如`1991`, + 个位和十位组成的数就是`19`. + """ + data = make_prime(10000) + + def getF4(n): + g, s, b = n % 10, n // 10 % 10, n // 100 % 10 + return g * 10 + s, s * 10 + g, g * 10 + b, b * 10 + g + + for i in range(1000, 10000): + if data[i]: + ls = getF4(i) + for c in ls: + if not data[c]: + break + else: + print(i) +print_1000_9999() diff --git a/复试笔记/历年真题Python代码/11/11python.py b/复试笔记/历年真题Python代码/11/11python.py new file mode 100644 index 0000000..b3832d5 --- /dev/null +++ b/复试笔记/历年真题Python代码/11/11python.py @@ -0,0 +1,36 @@ +""" + `2011`年复试上机题 + **要求:** + 输出`1000-9999`中满足以下条件的所有数: + * 该数是素数. + * 十位数和个位数组成的数是素数,百位数和个位数组成的数是素数. + * 个位数和百位数组成的数是素数,个位数和十位数组成的数是素数. 比如`1991`, + 个位和十位组成的数就是`19`. +""" +def isprime(n): + #判断n是否为素数 + edg=int(n**0.5)+1 + for i in range(2,edg): + if n%i==0: + return False + return True +def isaccord(n): + #判断n是否符合条件 + g,s,b=n%10,n//10%10,n//100%10 #g为个位数,s为十位数,b为百位数 + if isprime(s*10+g)and isprime(b*10+g)and isprime(g*10+b)and isprime(g*10+s): + return True + return False + +def make_prime(): + #遍历1000—9999,找到符合条件的数,存入prime中 + prime=[] + for i in range(1000,10000): + if isprime(i) and isaccord(i): + prime.append(i) + return prime +def main(): + #主函数 + print(make_prime()) + +if __name__=="__main__": + main() diff --git a/复试笔记/历年真题Python代码/12/12.py b/复试笔记/历年真题Python代码/12/12.py new file mode 100644 index 0000000..3cc8e05 --- /dev/null +++ b/复试笔记/历年真题Python代码/12/12.py @@ -0,0 +1,61 @@ +def _2012(): + """ + **程序:** + `2012`年复试上机题 + **要求:** + * 从服务器上下载数据文件`org.dat`文件以二进制方式存放一系列整数,每个整数占`4`个字节. + 从第一个整数开始,第一个整数和第二个整数构成一个坐标点,以此类推,数据文件中保存了许多坐标点数据. + * 规定处于第一象限的坐标点为有效点,请问数据文件中所有点的个数`n`为多少?有效点的个数`k`为多少? + * 每个有效点与坐标原点构成一个的矩形,请问`k`个有效点与坐标原点构成的`k`个矩形的最小公共区域面积为多少? + * 寻找有效点钟符合下列条件的点:以该点为坐标原点,其它有效点仍然是有效点即处于第一象限 + (不包括坐标轴上的点).输出这些点. + * 对所有有效点进行分组,每个有效点有且只有属于一个分组,分组内的点符合下列规则: + 若对组内所有点的x坐标进行排序,点`p1(x1, y1)`在点`p2(x2, y2)`后面,即`x1>x2`那么`y1>y2`,请输出所有的分组. + """ + + def read_from_file(): + with open('org.dat', 'rb') as file: + s = file.read().decode() + length = len(s) // 8 + points_p = [(int(s[i * 8:i * 8 + 4]), int(s[i * 8 + 4:i * 8 + 8])) for i in range(length)] + one_area_p = [t for t in points_p if t[0] > 0 and t[1] > 0] + one_area_p.sort(key=lambda k: k[0]) + return points_p, one_area_p + + def get_area(m): + return m[0] * m[1] + + def group(points_c: list): + result = [[points_c[0]]] + p = 0 + pre = points_c[0][1] + for i, j in points_c[1:]: + if j > pre: + result[p].append((i, j)) + else: + result.append([(i, j)]) + p += 1 + pre = j + return result + + def out_group(p): + for i in p: + for c in i: + print(c, end=',') + print("") + + points, one_area = read_from_file() + min = get_area(one_area[0]) + for point in one_area: + this_area = get_area(point) + if this_area < min: + min = this_area + print('面积最小:{}'.format(min)) + + if one_area[0][1] < one_area[1][1]: + print('这个点是:({},{})'.format(one_area[0][0], one_area[0][1])) + else: + print('不存在这种点') + + out_group(group(one_area)) +_2012() diff --git a/复试笔记/历年真题Python代码/12/12python.py b/复试笔记/历年真题Python代码/12/12python.py new file mode 100644 index 0000000..ecf2575 --- /dev/null +++ b/复试笔记/历年真题Python代码/12/12python.py @@ -0,0 +1,45 @@ +import struct +from random import randint +def read_file(): + with open("org.dat",'rb')as fp: + size=struct.calcsize('i') + f=fp.read(size) + nums=[] + while f: + num=struct.unpack('i',f)[0] + nums.append(num) + f=fp.read(size) + fp.close() + return nums +def make_site(nums:list): + n=len(nums)//2 + ava=[] + for i in range(n): + if nums[i*2]>0 and nums[2*i+1]>0: + ava.append([nums[2*i],nums[2*i+1]]) + print(ava) + return n,ava +def min_s(ava:list): + minx=100 + miny=100 + for i,j in ava: + if i CAN -> PEK`. + So `PVG -> CAN` would be a hop and `CAN -> PEK` would be a hop. + * **Input Data Files** + * Path Input File(`PathInput.txt`) + + This input file will consist of a number of single origination/destination airport pairs + (direct flights).The first line of the file will contain an integer representing the total + number of pairs in the rest of the file. + ``` + 6 + [PVG, CAN] + [CAN, PEK] + [PVG, CTU] + [CTU, DLC] + [DLC, HAK] + [HAK, LXA] + ``` + * Path Request File(`PathRequest.txt`) + This input file will contain a sequence of pairs of origination/destination airports and + a max number of hops. The first line of the file will contain an integer representing the + number of pairs in the file. + ``` + 2 + [PVG, DLC, 2] + [PVG, LXA, 2] + ``` + * Output File(`Output.txt`) + For each pair in the Path Request File, your program should output + the pair followed by `YES` or `NO` indicating that it is possible + to get from the origination to destination airports within the max number + of hops or it is not possible, respectively. + ``` + [PVG, DLC, YES] + [PVG, LXA, NO] + ``` + * **Assumptions you can make:** + You may make the following simplifying assumptions in your project: + * `C/C++` is allowed to be used. + * All airport codes will be `3` letters and will be in all caps + * Origination/destination pairs are unidirectional. To indicate that both directions + of flight are possible, two entries would appear in the file. For example, + `[PVG, PEK]` and `[PEK, PVG]` would have to be present in the file to indicate + that one could fly from `Shanghai` to `Beijing` and from `Beijing` to `Shanghai`. + **程序:** + """ + + def read_file(): + with open('PathInput.txt') as file: + content = file.read().split('\n') + with open('PathRequest.txt') as file: + request = file.read().split('\n') + path, req = [], [] + for i in content[1:]: + if i: + a, b = list(map(lambda x: x.strip(), i.strip(' []').split(','))) + path.append((a, b)) + for i in request[1:]: + if i: + a, b, c = list(map(lambda x: x.strip(), i.strip(' []').split(','))) + req.append((a, b, int(c))) + return path, req + + def create_map(data: list): + dic = {} + for a, b in data: + dic[a] = dic.get(a, []) + dic.get(a).append((b)) + return dic + + def init_visit(data: list): + visit = {} + for a, b in data: + visit[a] = 0 + visit[b] = 0 + return visit + + def dfs(visit: dict, graph: dict, start: str, end: str, deep: int): + if deep == 0: + return False + if start == end: + return True + ls = graph.get(start) + print(start, deep) + visit[start] = 1 + if ls: + for item in ls: + if visit[item] == 0 and dfs(visit, graph, item, end, deep - 1): + return True + return False + + def write_to_file(ls): + with open('Output.txt', 'w') as file: + file.write('\n'.join(ls)) + + city_sites, require_path = read_file() + map_c = create_map(city_sites) + answer = [] + for start, end, hops in require_path: + visited = init_visit(city_sites) + flag = dfs(visited, map_c, start, end, hops + 1) + result = '[{}, {}, {}]'.format(start, end, 'Yes' if flag else 'No') + answer.append(result) + write_to_file(answer) diff --git a/复试笔记/历年真题Python代码/14/14.py b/复试笔记/历年真题Python代码/14/14.py new file mode 100644 index 0000000..df21c1c --- /dev/null +++ b/复试笔记/历年真题Python代码/14/14.py @@ -0,0 +1,49 @@ +def _2014(): + """ + ##### `2014`年复试上机题 + **要求:** + * 从网页上下载`input.dat`文件,里面是用二进制编写的,里面放了一堆`int`型的数,每个数占`4`个字节,每次读取两个, + 这两个数构成一个坐标. + * 规定处于第一象限的数是有效点(即`x>0, y>0`的坐标),问这么多点中有效点有多少个? + * 现在用户从键盘输入一个坐标和一个数字`k`,设计算法输出`k`个离该坐标距离最近的点的坐标和每个坐标到该点的距离, + 写入到`output.txt`文件中. + **程序:** + """ + + def read_from(): + with open('input.txt', 'rt') as file: + content = file.read().split() + content = list(map(int, content)) + size = len(content) // 2 + res = [] + for i in range(size): + points = [] + for j in range(i * 2, i * 2 + 2): + points.append(content[j]) + res.append(points) + return res + + def count(points: list): + c = 0 + for x, y in points: + if x > 0 and y > 0: + c += 1 + return c + + def get_closet_k(k: int, point: list, ls: list): + ls.sort(key=lambda p: (point[0] - p[0]) ** 2 + (point[1] - p[1]) ** 2) + return ls[:k] + + ps = read_from() + leagel = count(ps) + print('n={}'.format(leagel)) + p = input('input point:').split() + p = list(map(int, p)) + k = eval(input('input k:')) + points = get_closet_k(k, p, ps) + line = [] + for po in points: + d = ((po[0] - p[0]) ** 2 + (po[1] - p[1]) ** 2) ** 0.5 + line.append('({}, {}) distance={:.2f}'.format(po[0], p[1], d)) + with open('Output.txt', 'w', encoding='utf-8') as f: + f.write('\n'.join(line)) diff --git a/复试笔记/历年真题Python代码/15/15.py b/复试笔记/历年真题Python代码/15/15.py new file mode 100644 index 0000000..b86ebd7 --- /dev/null +++ b/复试笔记/历年真题Python代码/15/15.py @@ -0,0 +1,75 @@ +import struct +def _2015(): + """ + ##### `2015`年复试上机 + **要求:** + * 从网页上下载`input.dat`文件,里面是用二进制编写的,里面放了一堆`int`型的数, + 每个数占`4`个字节,每次读取两个,这两个数构成一个坐标. + * 规定处于第一象限的数是有效点(即`x>0, y>0`的坐标),问这么多点中有效点有多少个? + * 从键盘上输入`k`和`n`,从第一问中的有效点中找出距离小于`n`,距离小于`n`的点的个数要大于`k`, + 将它们以文本格式输出到文件中. + **程序:** + """ + with open("input.txt","rb")as fp: + size=struct.calcsize('i') + f=fp.read(size) + p=[] + while f: + value=struct.unpack('i',f)[0] + p.append(value) + f=fp.read(size) + fp.close() + ''' + with open('input.txt', encoding='utf-8') as f: + p = f.read().split() + p = list(map(int, p)) + ''' + size = len(p) // 2 + ans = [] + for i in range(size): + point = [] + for j in range(i * 2, i * 2 + 2): + point.append(p[j]) + ans.append(point) + vaild = [] + for x, y in ans: + if x > 0 and y > 0: + vaild.append((x, y)) + print('vaild: {}'.format(len(vaild))) + k = eval(input('input k: ')) + n = eval(input('input n: ')) + distance = {} + for i in range(len(vaild)): + px, py = vaild[i] + for j in range(i + 1, len(vaild)): + ppx, ppy = vaild[j] + key = '{}{}{},{}{}{}'.format(i, px, py, j, ppx, ppy) + key2 = '{}{}{},{}{}{}'.format(j, ppx, ppy, i, px, py) + if distance.get(key): + continue + elif distance.get(key2): + continue + else: + distance[key] = ((px - ppx) ** 2 + (py - ppy) ** 2) ** 0.5 + for i in range(len(vaild)): + px, py = vaild[i] + c = 0 + ls = [] + for j in range(len(vaild)): + if j == i: + continue + ppx, ppy = vaild[j] + key1 = '{}{}{},{}{}{}'.format(i, px, py, j, ppx, ppy) + key2 = '{}{}{},{}{}{}'.format(j, ppx, ppy, i, px, py) + d = distance.get(key1) if distance.get(key1) else distance.get(key2) + if d < n: + c += 1 + ls.append([vaild[j], d]) + if c <= k: + continue + print() + print('distance less {} to point: ({}, {}) as follows:'.format(n, px, py)) + for point, d in ls: + print('({}, {}), d={:.2f}'.format(point[0], point[1], d)) + print() +_2015() diff --git a/复试笔记/历年真题Python代码/15/15python.py b/复试笔记/历年真题Python代码/15/15python.py new file mode 100644 index 0000000..e46c8bb --- /dev/null +++ b/复试笔记/历年真题Python代码/15/15python.py @@ -0,0 +1,67 @@ +import struct +from random import randint +""" + ##### `2015`年复试上机 + **要求:** + * 从网页上下载`input.dat`文件,里面是用二进制编写的,里面放了一堆`int`型的数, + 每个数占`4`个字节,每次读取两个,这两个数构成一个坐标. + * 规定处于第一象限的数是有效点(即`x>0, y>0`的坐标),问这么多点中有效点有多少个? + * 从键盘上输入`k`和`n`,从第一问中的有效点中找出距离小于`n`,距离小于`n`的点的个数要大于`k`, + 将它们以文本格式输出到文件中. + **程序:** + """ +def read_file(): + #读取二进制文件,并且把读取的数字存储到point列表中 + with open("input.txt","rb")as fp: + size=struct.calcsize('i') + f=fp.read(size) + point=[] + while f: + value=struct.unpack('i',f)[0] + point.append(value) + f=fp.read(size) + return point + +def make_coord(point:list): + #根据数字列表进行两两组合,形成coords的点集合 + size=len(point)//2 + coords=[] + for i in range(size): + p=[point[2*i],point[2*i+1]] + coords.append(p) + return coords + +def available_point(coords:list,n:float,k:int): + #统计有效点个数,并且在有效点集合里找到符合要求的点存储到out.txt里 + fq=open("out.txt",'w') + avail=[] + for i in coords: + if i[0]>0 and i[1]>0: + avail.append(i) + for i in avail: + count=0 + for j in avail: + if i!=j and (i[0]-j[0])**2+(i[1]-j[1])**2k: + print(i[0],i[1]) + fq.write('('+str(i[0])+','+str(i[1])+')\n') + fq.close() + return len(avail) + +def main(): + ''' + #生成二进制数字文件 + with open("input.txt","wb")as fp: + for i in range(100): + data=struct.pack('i',randint(-5,100)) + fp.write(data) + ''' + points=read_file() + coords=make_coord(points) + n=float(input("请输入距离n值:")) + k=int(input("请输入个数要求k:")) + print(available_point(coords,n,k)) + +if __name__=="__main__": + main() diff --git a/复试笔记/历年真题Python代码/15/input.txt b/复试笔记/历年真题Python代码/15/input.txt new file mode 100644 index 0000000..e0167e0 Binary files /dev/null and b/复试笔记/历年真题Python代码/15/input.txt differ diff --git a/复试笔记/历年真题Python代码/15/out.txt b/复试笔记/历年真题Python代码/15/out.txt new file mode 100644 index 0000000..1be3371 --- /dev/null +++ b/复试笔记/历年真题Python代码/15/out.txt @@ -0,0 +1,22 @@ +(26,36) +(29,32) +(51,95) +(21,88) +(67,87) +(89,44) +(56,48) +(19,94) +(10,45) +(26,24) +(4,41) +(12,90) +(4,48) +(19,29) +(52,85) +(80,43) +(58,89) +(63,85) +(16,86) +(19,25) +(54,87) +(29,90) diff --git a/复试笔记/历年真题Python代码/16/1.txt b/复试笔记/历年真题Python代码/16/1.txt new file mode 100644 index 0000000..872d487 --- /dev/null +++ b/复试笔记/历年真题Python代码/16/1.txt @@ -0,0 +1,16 @@ +I +am +human +so +sad +to +say +what +have +done +want +a +hope +to +find +light \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/16/16.py b/复试笔记/历年真题Python代码/16/16.py new file mode 100644 index 0000000..2407724 --- /dev/null +++ b/复试笔记/历年真题Python代码/16/16.py @@ -0,0 +1,36 @@ +def _2016(): + """ + `2016`年复试上机题 + **要求:** + 文本文件`input.txt`由若干英文单词和分隔符(空格,回车,换行)构成. 根据如下 + 说明编写程序统计不同单词出现的次数(频度). + 将统计结果按出现频度从高到低排序,并将出现频度大于`5`的单词及 + 其频度输出到文件`output.txt`中. 文件格式如图所示 + ![format](E:\Markdown\img\format.png) + * 多个连续的分隔符被视为一个分隔符. + * 大小写敏感. + * 每个单词的长度不超过`20`个字符. + * 单词的数量未知. 如使用定义静态大数组的方式来统计,将被扣除`5`分. + **程序:** + :return: + """ + file = open('input.txt', encoding='utf-8') + txt = file.read() + file.close() + import re + res = re.split(r'\s+', txt) + print(res) + dic = {} + for word in res: + dic[word] = dic.get(word, 0) + 1 + ans = [] + for k in dic: + if dic.get(k) > 1: + ans.append('{}: {}'.format(k, dic.get(k))) + with open('output.txt', 'w', encoding='utf-8') as f: + f.write('\n'.join(ans)) + + +_2016() +with open("output.txt", 'r')as fp: + print(fp.read()) diff --git a/复试笔记/历年真题Python代码/16/16bao.py b/复试笔记/历年真题Python代码/16/16bao.py new file mode 100644 index 0000000..6d94364 --- /dev/null +++ b/复试笔记/历年真题Python代码/16/16bao.py @@ -0,0 +1,69 @@ +def _by_2016(): + """ + ##### `2016`年保研上机题 + ** 要求: ** + *请从服务器将两个数据文件 `input.txt` 和 `words.txt` 下载到本地电脑的 `D` 盘根文件夹。 + *在 `D` 盘根文件夹的 `words.txt` 中存储了不超过 `30000`条的英文单词,每个单词占一行。单词的最大长度为`20`, + 且单词内部没有空格,文件中无重复单词。 + *在D盘根文件夹的 `input.txt` 中存储了一个「丢失」了空格和标点符号的英文文章。每行不超过 `128`个字符,请编写程序把 + 该文章中第一行和最后一行显示在屏幕上。 + *编写程序将 `words.txt`中的最后三行显示在屏幕上; *编写程序利用 `words.txt` 中的单词作为词典,采用正向最大 + 匹配切分单词算法对 `input.txt` 中的文本进行单词切分。切分时单词区分大小写, 切分分割标记采用空格,并将切分 + 后的结果写入到`out.txt` 中。 + 所谓正向最大匹配切分就是从左向右扫描待切分字符串,尽量取长词。 下面举一个简单例子:现有待切分字符串`ABCDEFGHIJ`, + 设词典中最大单词长度为`5`。那么按照算法首先取出`ABCDE`判断是否是单词, 如果是则切分到一个单词,否则舍弃最后一个字母接着判断, + 也就是判断`ABCD`是否是单词,依此类推,当只有一个字母时可以直接认定为是单词。 在成功切分出一个单词后对待切分字符串余下的部分 + 再次执行上述过程。 *编写程序实现步骤`2`、`3` 描述的要求,并通过如下所示的主函数对进行验证,注意:除了指定添加的代码之外,不得修改 + `main` 函数其余部分。对 `main` 函数每修改一处,总分扣 `3` 分,最多扣 `10` 分。 + *本次考试考核 + `C` 语言程序设计,因此不可以使用`C + +`的` STL + `的任何功能,如果需要添加下面样例之外的程序头文件,请举手得到监考老师批准。 + ** 程序: ** + '""" + + def read_file(): + with open('words.txt', encoding='utf-8') as f: + words = f.read().split('\n') + with open('input.txt', encoding='utf-8') as f: + txt = f.read().split('\n') + print(txt[0]) + print(txt[-1]) + i = -3 + if len(words) > 2: + print(words[i]) + i += 1 + w = {} + m = 0 + for word in words: + le = len(word) + if le > m: + m = le + w[word] = 1 + w['max_length'] = m + return w, txt + + def txt_split(dictionary: dict, txt: str): + width = dictionary.get('max_length') + start = 0 + end = start + width + length = len(txt) + answer = [] + while start < length: + if end > length: + end = length + if end == start + 1: + answer.append(txt[start]) + start = end + end = start + width + s = txt[start:end] + if dictionary.get(s): + start = end + end = start + width + answer.append(s) + else: + end -= 1 + return ' '.join(answer) + + def write_to_file(txt): + with open('output.txt', 'w', encoding='utf-8') as f: + f.write(txt) diff --git a/复试笔记/历年真题Python代码/16/16baopython.py b/复试笔记/历年真题Python代码/16/16baopython.py new file mode 100644 index 0000000..6540781 --- /dev/null +++ b/复试笔记/历年真题Python代码/16/16baopython.py @@ -0,0 +1,64 @@ +import random +""" + ##### `2016`年保研上机题 + ** 要求: ** + *请从服务器将两个数据文件 `input.txt` 和 `words.txt` 下载到本地电脑的 `D` 盘根文件夹。 + *在 `D` 盘根文件夹的 `words.txt` 中存储了不超过 `30000`条的英文单词,每个单词占一行。单词的最大长度为`20`, + 且单词内部没有空格,文件中无重复单词。 + *在D盘根文件夹的 `input.txt` 中存储了一个「丢失」了空格和标点符号的英文文章。每行不超过 `128`个字符,请编写程序把 + 该文章中第一行和最后一行显示在屏幕上。 + *编写程序将 `words.txt`中的最后三行显示在屏幕上; *编写程序利用 `words.txt` 中的单词作为词典,采用正向最大 + 匹配切分单词算法对 `input.txt` 中的文本进行单词切分。切分时单词区分大小写, 切分分割标记采用空格,并将切分 + 后的结果写入到`out.txt` 中。 + 所谓正向最大匹配切分就是从左向右扫描待切分字符串,尽量取长词。 下面举一个简单例子:现有待切分字符串`ABCDEFGHIJ`, + 设词典中最大单词长度为`5`。那么按照算法首先取出`ABCDE`判断是否是单词, 如果是则切分到一个单词,否则舍弃最后一个字母接着判断, + 也就是判断`ABCD`是否是单词,依此类推,当只有一个字母时可以直接认定为是单词。 在成功切分出一个单词后对待切分字符串余下的部分 + 再次执行上述过程。 *编写程序实现步骤`2`、`3` 描述的要求,并通过如下所示的主函数对进行验证,注意:除了指定添加的代码之外,不得修改 + `main` 函数其余部分。对 `main` 函数每修改一处,总分扣 `3` 分,最多扣 `10` 分。 + *本次考试考核 + `C` 语言程序设计,因此不可以使用`C + +`的` STL + `的任何功能,如果需要添加下面样例之外的程序头文件,请举手得到监考老师批准。 + ** 程序: ** + '""" + + +def make_file(): + with open('input.txt', 'w')as fp: + pass + + +def read_file(url1, url2): + #读取两个文件的内容 + with open(url1, 'r')as fp: + words = fp.read().split('\n') + with open(url2, 'r')as fq: + txt = fq.read().split('\n') + print(txt[0]) + print(txt[-1]) #输出文章第一行与最后一行 + for i in words[-3:]: + print(i) #输出词典后三位 + return words, txt + + +def split_file(words, txt): + out = [] + for string in txt: #对每一行缺字符的字符串进行拆分 + while len(string) > 0: + for i in range(5, 0, -1): + if string[:i] in words: + out.append(string[:i]) + string = string[i:] + break + if i == 1: + out.append(string[0]) + string = string[1:] + print(' '.join(out)) + + +def main(): + words, txt = read_file('1.txt', '2.txt') + split_file(words, txt) + + +if __name__ == '__main__': + main() diff --git a/复试笔记/历年真题Python代码/16/16python.py b/复试笔记/历年真题Python代码/16/16python.py new file mode 100644 index 0000000..3338559 --- /dev/null +++ b/复试笔记/历年真题Python代码/16/16python.py @@ -0,0 +1,21 @@ +def read_file(): + with open("input.txt", 'r') as fp: + words = fp.read().split() + word = sorted(set(words), key=words.index) + res = [] + for i in word: + res.append(words.count(i)) + with open("output.txt", 'w')as fp: + for i in range(len(res)): + if res[i] > 1: + fp.write(str(word[i])+':'+str(res[i])+'\n') + + +def main(): + read_file() + + +if __name__ == "__main__": + main() + with open("output.txt", 'r')as fq: + print(fq.read()) diff --git a/复试笔记/历年真题Python代码/16/2.txt b/复试笔记/历年真题Python代码/16/2.txt new file mode 100644 index 0000000..a9ad50b --- /dev/null +++ b/复试笔记/历年真题Python代码/16/2.txt @@ -0,0 +1,2 @@ +IamhumanIamsosadtosaywhatIhavedone +Iwantahopetofindlight \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/16/input.txt b/复试笔记/历年真题Python代码/16/input.txt new file mode 100644 index 0000000..216d0f2 --- /dev/null +++ b/复试笔记/历年真题Python代码/16/input.txt @@ -0,0 +1,3 @@ +Transportation has been greatly changed in the past few years +been greatly changed in the past few +changed in the \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/16/output.txt b/复试笔记/历年真题Python代码/16/output.txt new file mode 100644 index 0000000..779c0ff --- /dev/null +++ b/复试笔记/历年真题Python代码/16/output.txt @@ -0,0 +1,7 @@ +been:2 +greatly:2 +changed:3 +in:3 +the:3 +past:2 +few:2 diff --git a/复试笔记/历年真题Python代码/1602模拟题_90min/1602模拟题.py b/复试笔记/历年真题Python代码/1602模拟题_90min/1602模拟题.py new file mode 100644 index 0000000..4933428 --- /dev/null +++ b/复试笔记/历年真题Python代码/1602模拟题_90min/1602模拟题.py @@ -0,0 +1,57 @@ +import re +import time +def get_record(url): + #读文件函数 + with open(url,'r')as fp: + vlst=fp.read().split() #读取全部文件并分裂成列表 + fp.close() + return vlst +def get_v(vlst): + # 获取全部不同的ETC编号,构成集合 + vset=set() #新建空集合 + for i in vlst: #将每条记录的车辆加入集合中,利用集合的性质自动去重 + vset.add(i[:10]) + return vset +def count_v(vlst, vset): + # 构造车辆进出校园次数的字典 + keys=vset #将车辆列表设为关键词集合 + lst=[] + for i in vlst: + lst.append(i[:10]) + values=list(lst.count(i) for i in vset) #根据每辆车出现的次数列表设为值表 + fre=dict(zip(keys,values)) #根据关键词列表与值列表构成字典 + return fre +def count_t(vlst, vset): + # 构造车辆累计停留时间的字典 + tlst=dict.fromkeys(vset,0) #根据车辆列表建立关键词字典,且值都为0 + for i in vlst: + sp=i.split('|') + tim2=time.mktime(time.strptime(sp[2],'%Y-%m-%d#%H:%M:%S')) + tim1=time.mktime(time.strptime(sp[1],'%Y-%m-%d#%H:%M:%S')) + tlst[sp[0]]+=(tim2-tim1) #计算每个记录的时间差,并累加 + return tlst +def write_to_file(vlst, fre, tlst, url): + # 输出结果到文件中 + with open(url,'w')as fp: #依次输出每行信息 + fp.write('记录条数:'+str(len(vlst))+'\n') + fp.write('车辆数:'+str(len(tlst))+'\n') + fp.write('进校次数最多的5辆车(单位:次):\n') + fri=sorted(fre.items(),key=lambda x:x[1],reverse=True) #根据车辆出现次数由高向低排序 + for i in range(5): + fp.write(fri[i][0]+','+str(fri[i][1])+'\n') + fp.write('累计停留时间最长的5辆车(单位:秒):\n') + inter=sorted(tlst.items(),key=lambda x:x[1],reverse=True) #根据停留时间由高向低排序 + for i in range(5): + fp.write(inter[i][0]+','+str(inter[i][1])+'\n') + fp.close() + + +def main(): + vehicle_lst = get_record("data.txt") # 读文件,获取全部ETC记录,构成列表 + vehicle_set = get_v(vehicle_lst) # 获取全部不同的ETC编号,构成集合 + fre_dict = count_v(vehicle_lst, vehicle_set) # 构造车辆进出校园次数的字典 + inter_dict = count_t(vehicle_lst, vehicle_set) # 构造车辆累计停留时间的字典 + write_to_file(vehicle_lst, fre_dict, inter_dict, "report.txt") # 输出结果到文件中 + return + +main() # 调用main函数 diff --git a/复试笔记/历年真题Python代码/1602模拟题_90min/2016-02.docx b/复试笔记/历年真题Python代码/1602模拟题_90min/2016-02.docx new file mode 100644 index 0000000..db68f01 Binary files /dev/null and b/复试笔记/历年真题Python代码/1602模拟题_90min/2016-02.docx differ diff --git a/复试笔记/历年真题Python代码/1602模拟题_90min/data.txt b/复试笔记/历年真题Python代码/1602模拟题_90min/data.txt new file mode 100644 index 0000000..ea23f7e --- /dev/null +++ b/复试笔记/历年真题Python代码/1602模拟题_90min/data.txt @@ -0,0 +1,645 @@ +FY-806-579|2016-06-11#10:50:28|2016-06-11#21:48:50 +VI-487-543|2016-07-03#11:55:34|2016-07-03#16:17:57 +LX-467-684|2016-05-09#02:09:45|2016-05-09#16:56:03 +CD-442-830|2016-02-04#05:07:54|2016-02-04#18:15:57 +VI-487-543|2016-02-08#08:21:37|2016-02-08#23:21:34 +ZZ-667-538|2016-08-15#06:55:01|2016-08-15#16:57:51 +BR-189-680|2016-03-23#08:38:54|2016-03-23#15:50:33 +TL-926-685|2016-06-18#06:22:03|2016-06-18#22:56:11 +DF-313-963|2016-09-22#08:27:05|2016-09-22#19:21:12 +TV-859-893|2016-02-06#10:47:48|2016-02-06#17:14:48 +FE-727-520|2016-09-05#02:16:53|2016-09-05#15:27:47 +AN-523-765|2016-01-16#11:12:31|2016-01-16#17:22:18 +LZ-691-640|2016-08-26#12:57:29|2016-08-26#13:04:52 +UI-370-311|2016-06-07#02:09:14|2016-06-07#21:47:18 +VI-487-543|2016-02-24#08:47:38|2016-02-24#18:01:16 +VI-487-543|2016-02-23#05:48:09|2016-02-23#13:12:17 +VI-487-543|2016-11-24#10:39:35|2016-11-24#18:48:17 +RK-121-202|2016-10-28#12:03:57|2016-10-28#19:33:19 +EZ-678-384|2016-02-17#00:38:20|2016-02-17#14:06:13 +ZW-852-196|2016-07-13#05:06:27|2016-07-13#22:23:39 +MA-299-333|2016-12-19#04:19:48|2016-12-19#19:26:30 +BR-189-680|2016-11-05#08:46:18|2016-11-05#20:24:32 +LM-352-835|2016-02-04#10:55:05|2016-02-04#21:54:22 +OR-254-541|2016-04-26#01:06:02|2016-04-26#13:29:34 +GC-559-600|2016-07-24#10:32:59|2016-07-24#17:37:51 +ZZ-667-538|2016-01-12#09:41:45|2016-01-12#15:09:15 +KS-660-935|2016-05-01#06:04:05|2016-05-01#22:38:31 +CX-427-230|2016-03-12#11:52:56|2016-03-12#20:20:14 +AE-813-816|2016-07-27#08:17:05|2016-07-27#13:43:16 +DF-313-963|2016-10-17#06:22:42|2016-10-17#20:16:01 +UE-470-645|2016-08-13#01:37:26|2016-08-13#23:54:45 +FE-727-520|2016-06-13#01:22:44|2016-06-13#17:57:24 +LM-352-835|2016-03-14#04:12:01|2016-03-14#21:12:49 +TU-842-739|2016-12-04#09:35:56|2016-12-04#14:40:47 +CD-442-830|2016-11-05#11:00:44|2016-11-05#21:19:19 +BU-195-109|2016-07-19#00:40:54|2016-07-19#17:54:11 +SX-733-715|2016-09-24#11:16:37|2016-09-24#15:00:02 +VH-888-552|2016-06-03#08:53:14|2016-06-03#16:50:46 +TG-407-535|2016-08-03#10:14:16|2016-08-03#15:28:50 +LF-857-120|2016-10-02#01:10:27|2016-10-02#14:26:36 +SX-733-715|2016-07-09#08:20:36|2016-07-09#18:40:29 +WM-273-485|2016-09-16#00:26:02|2016-09-16#14:01:40 +PK-528-510|2016-10-11#06:06:15|2016-10-11#18:25:56 +BE-724-857|2016-09-18#06:05:19|2016-09-18#19:10:15 +ZL-160-996|2016-01-24#00:32:20|2016-01-24#16:50:09 +QY-583-692|2016-08-15#03:22:52|2016-08-15#17:13:14 +TP-344-975|2016-06-10#00:58:43|2016-06-10#22:44:19 +SX-733-715|2016-11-04#02:18:10|2016-11-04#13:13:19 +ZS-645-652|2016-08-12#00:15:01|2016-08-12#17:34:07 +TL-926-685|2016-04-28#11:39:36|2016-04-28#22:58:45 +TP-344-975|2016-06-24#01:16:36|2016-06-24#19:33:31 +EB-804-664|2016-06-18#09:44:26|2016-06-18#13:11:14 +TK-620-337|2016-02-15#10:22:43|2016-02-15#17:38:34 +UI-370-311|2016-07-11#02:18:23|2016-07-11#20:54:56 +OH-748-377|2016-04-16#09:52:25|2016-04-16#21:17:30 +IZ-849-395|2016-12-27#11:56:58|2016-12-27#20:14:21 +TU-842-739|2016-02-26#11:17:56|2016-02-26#15:08:44 +CN-977-298|2016-08-02#08:15:38|2016-08-02#17:29:20 +CD-442-830|2016-04-14#11:34:17|2016-04-14#21:00:22 +TK-620-337|2016-12-19#06:11:22|2016-12-19#14:44:58 +GC-559-600|2016-10-20#06:02:31|2016-10-20#14:20:19 +DJ-493-878|2016-03-04#03:36:50|2016-03-04#17:07:23 +BA-269-571|2016-03-28#03:39:59|2016-03-28#20:23:54 +IU-243-936|2016-08-19#11:39:02|2016-08-19#21:11:14 +PE-530-455|2016-01-02#12:28:15|2016-01-02#16:34:44 +LZ-691-640|2016-07-20#10:02:36|2016-07-20#17:09:57 +OS-997-817|2016-02-27#06:02:45|2016-02-27#21:54:43 +LF-857-120|2016-06-23#08:47:10|2016-06-23#17:16:30 +SV-260-690|2016-01-14#11:05:07|2016-01-14#16:40:08 +RD-195-981|2016-04-14#08:14:29|2016-04-14#15:55:24 +QC-621-143|2016-08-08#04:21:43|2016-08-08#23:14:51 +AX-747-749|2016-03-12#05:36:53|2016-03-12#16:21:21 +TG-407-535|2016-11-10#05:05:31|2016-11-10#19:25:11 +TR-445-782|2016-08-18#07:54:22|2016-08-18#23:06:13 +DF-313-963|2016-03-15#04:08:16|2016-03-15#13:01:27 +QY-583-692|2016-06-11#10:47:43|2016-06-11#17:42:24 +TR-445-782|2016-07-18#02:33:39|2016-07-18#18:45:20 +LM-352-835|2016-10-07#08:58:17|2016-10-07#21:50:22 +WO-435-877|2016-06-25#10:56:56|2016-06-25#22:06:41 +QY-583-692|2016-06-06#10:20:07|2016-06-06#18:15:09 +HU-529-141|2016-10-20#03:39:57|2016-10-20#17:00:23 +OH-748-377|2016-11-13#09:36:23|2016-11-13#17:10:58 +TU-842-739|2016-08-24#01:11:02|2016-08-24#19:08:22 +CX-427-230|2016-11-16#01:53:12|2016-11-16#17:30:45 +KK-602-197|2016-01-06#02:11:13|2016-01-06#13:38:25 +TU-842-739|2016-05-14#01:14:07|2016-05-14#13:22:16 +SV-260-690|2016-06-11#11:17:19|2016-06-11#16:00:59 +DE-980-977|2016-02-10#04:19:56|2016-02-10#17:24:44 +YL-561-608|2016-08-23#09:54:11|2016-08-23#22:51:53 +PE-530-455|2016-02-24#04:48:19|2016-02-24#14:57:20 +BA-269-571|2016-11-18#05:23:41|2016-11-18#17:16:55 +MA-299-333|2016-02-01#10:40:53|2016-02-01#21:38:26 +FE-727-520|2016-02-09#07:56:30|2016-02-09#20:39:07 +MA-299-333|2016-04-22#00:26:45|2016-04-22#13:27:56 +MA-299-333|2016-06-15#11:41:56|2016-06-15#15:24:41 +LM-352-835|2016-06-12#12:13:38|2016-06-12#22:01:14 +KS-729-919|2016-09-17#00:46:42|2016-09-17#18:47:03 +OD-207-479|2016-07-27#03:13:48|2016-07-27#13:18:07 +XW-317-679|2016-12-27#03:39:08|2016-12-27#18:36:02 +SN-803-686|2016-11-25#09:03:50|2016-11-25#16:42:39 +SX-733-715|2016-04-10#02:34:03|2016-04-10#22:59:19 +BA-269-571|2016-05-15#04:00:14|2016-05-15#15:05:44 +OS-997-817|2016-03-26#08:34:16|2016-03-26#21:36:04 +OR-254-541|2016-03-14#11:24:55|2016-03-14#21:12:23 +SX-733-715|2016-03-12#06:01:09|2016-03-12#20:54:33 +DX-384-493|2016-01-07#02:21:23|2016-01-07#18:25:38 +TR-445-782|2016-07-17#07:16:37|2016-07-17#15:33:31 +DE-980-977|2016-12-23#04:57:38|2016-12-23#23:30:32 +HK-208-572|2016-12-10#09:57:52|2016-12-10#23:07:26 +VA-533-848|2016-04-18#07:23:44|2016-04-18#20:23:42 +KX-431-483|2016-12-09#02:15:52|2016-12-09#18:03:52 +LY-652-510|2016-03-14#07:39:15|2016-03-14#13:20:17 +AX-747-749|2016-03-18#05:17:09|2016-03-18#20:50:30 +BR-189-680|2016-01-06#10:02:50|2016-01-06#13:17:28 +LB-167-847|2016-06-14#10:09:08|2016-06-14#15:04:59 +MR-373-420|2016-08-04#04:46:16|2016-08-04#15:33:44 +QY-583-692|2016-01-06#09:34:19|2016-01-06#18:41:06 +VI-487-543|2016-06-24#10:34:29|2016-06-24#23:03:05 +LZ-691-640|2016-11-07#07:25:17|2016-11-07#17:05:11 +EZ-678-384|2016-05-16#11:42:46|2016-05-16#17:51:13 +RR-599-847|2016-04-07#12:11:55|2016-04-07#15:47:27 +FP-408-494|2016-08-08#12:47:42|2016-08-08#18:36:10 +DF-313-963|2016-12-02#11:48:42|2016-12-02#16:15:14 +SX-537-165|2016-03-19#04:21:10|2016-03-19#16:28:46 +UI-370-311|2016-01-23#07:16:56|2016-01-23#18:20:13 +DE-980-977|2016-11-09#12:57:18|2016-11-09#14:39:10 +LZ-691-640|2016-06-09#01:42:22|2016-06-09#23:24:54 +OC-962-561|2016-06-02#01:07:55|2016-06-02#22:05:49 +EB-804-664|2016-04-16#04:41:08|2016-04-16#18:27:10 +VA-533-848|2016-06-23#10:21:54|2016-06-23#23:03:10 +SX-537-165|2016-10-15#05:02:37|2016-10-15#21:56:25 +ZS-645-652|2016-05-15#10:02:19|2016-05-15#22:18:52 +DF-313-963|2016-11-02#02:51:53|2016-11-02#17:45:17 +TG-407-535|2016-08-26#10:19:40|2016-08-26#20:22:10 +TO-702-756|2016-06-12#09:47:38|2016-06-12#15:07:44 +DB-661-122|2016-09-26#05:48:25|2016-09-26#16:34:18 +RD-195-981|2016-12-22#07:09:56|2016-12-22#18:30:35 +OS-997-817|2016-03-12#01:49:12|2016-03-12#21:00:41 +TP-344-975|2016-11-13#02:57:22|2016-11-13#14:59:00 +RD-195-981|2016-04-03#00:39:44|2016-04-03#15:41:52 +QY-583-692|2016-05-07#12:01:03|2016-05-07#16:46:49 +CD-442-830|2016-10-13#01:45:20|2016-10-13#15:57:46 +SV-260-690|2016-03-04#01:52:22|2016-03-04#19:19:10 +DE-980-977|2016-08-19#00:04:58|2016-08-19#19:33:55 +UY-706-428|2016-12-06#08:16:22|2016-12-06#15:41:43 +NR-929-164|2016-09-18#01:03:53|2016-09-18#19:56:15 +KX-431-483|2016-06-01#09:15:52|2016-06-01#16:04:59 +TV-859-893|2016-09-14#06:28:48|2016-09-14#13:51:57 +ZS-645-652|2016-05-22#12:28:23|2016-05-22#14:36:54 +TU-842-739|2016-01-14#12:36:14|2016-01-14#15:26:11 +OD-207-479|2016-05-19#01:32:45|2016-05-19#14:01:23 +XB-523-219|2016-05-16#07:01:48|2016-05-16#19:30:09 +RK-121-202|2016-02-06#07:49:56|2016-02-06#20:26:30 +HU-529-141|2016-07-17#08:08:42|2016-07-17#14:55:35 +TV-859-893|2016-05-13#04:53:58|2016-05-13#18:58:01 +OD-207-479|2016-07-28#03:33:47|2016-07-28#22:12:08 +FE-727-520|2016-04-09#10:25:59|2016-04-09#18:02:49 +WM-273-485|2016-02-20#10:50:17|2016-02-20#14:46:14 +AX-747-749|2016-11-25#07:15:03|2016-11-25#17:34:33 +KS-729-919|2016-12-14#06:16:15|2016-12-14#16:00:38 +OH-748-377|2016-11-04#08:38:59|2016-11-04#16:44:26 +CX-427-230|2016-05-07#06:12:53|2016-05-07#16:35:10 +NS-789-344|2016-06-27#04:17:31|2016-06-27#19:57:33 +DX-523-950|2016-11-22#03:23:01|2016-11-22#17:00:41 +SX-733-715|2016-04-27#12:11:13|2016-04-27#19:37:41 +DJ-493-878|2016-06-24#08:32:17|2016-06-24#18:12:50 +KK-602-197|2016-02-05#12:26:49|2016-02-05#15:59:12 +AP-330-773|2016-07-14#10:33:18|2016-07-14#18:48:12 +UY-706-428|2016-07-10#05:28:17|2016-07-10#18:33:16 +AN-523-765|2016-06-04#11:39:42|2016-06-04#23:14:30 +HK-208-572|2016-12-13#00:03:32|2016-12-13#15:25:10 +IW-281-339|2016-06-21#00:41:57|2016-06-21#14:47:31 +LM-352-835|2016-11-16#10:07:53|2016-11-16#20:48:50 +FP-408-494|2016-11-02#10:48:29|2016-11-02#14:48:57 +QC-621-143|2016-09-12#08:38:55|2016-09-12#21:34:54 +JM-130-917|2016-02-21#11:15:18|2016-02-21#13:43:39 +BR-189-680|2016-09-07#00:03:17|2016-09-07#17:39:57 +BA-269-571|2016-10-01#11:35:32|2016-10-01#14:36:32 +AP-330-773|2016-08-27#09:12:00|2016-08-27#15:09:08 +LY-652-510|2016-02-05#10:41:30|2016-02-05#18:05:38 +DF-313-963|2016-08-17#06:36:45|2016-08-17#15:04:09 +SX-733-715|2016-05-17#12:17:18|2016-05-17#13:32:17 +VI-487-543|2016-03-10#04:25:00|2016-03-10#13:53:38 +HE-160-974|2016-08-07#09:31:50|2016-08-07#21:26:03 +NT-608-584|2016-07-03#12:43:35|2016-07-03#16:45:07 +HE-160-974|2016-09-24#08:51:18|2016-09-24#16:27:43 +LB-167-847|2016-06-27#07:02:36|2016-06-27#15:36:41 +RK-121-202|2016-12-15#03:56:39|2016-12-15#14:20:50 +SX-733-715|2016-11-03#09:09:13|2016-11-03#20:03:05 +TG-407-535|2016-01-17#08:46:11|2016-01-17#23:55:08 +TU-842-739|2016-12-15#05:52:12|2016-12-15#21:10:58 +KS-729-919|2016-10-16#02:43:54|2016-10-16#19:06:56 +OC-962-561|2016-11-14#03:12:27|2016-11-14#14:18:17 +RK-121-202|2016-10-11#11:24:38|2016-10-11#18:56:25 +NS-789-344|2016-01-27#02:36:06|2016-01-27#21:19:13 +OC-962-561|2016-02-12#11:21:45|2016-02-12#17:58:56 +EZ-678-384|2016-06-17#01:50:54|2016-06-17#17:34:37 +JM-130-917|2016-11-05#04:09:51|2016-11-05#20:44:30 +OS-997-817|2016-02-28#08:00:06|2016-02-28#19:15:51 +BR-189-680|2016-04-14#09:24:57|2016-04-14#21:28:13 +RN-254-731|2016-12-08#08:03:54|2016-12-08#19:29:37 +NR-929-164|2016-03-02#04:50:04|2016-03-02#15:04:40 +HK-208-572|2016-12-27#11:08:06|2016-12-27#20:44:35 +XW-317-679|2016-10-23#09:47:53|2016-10-23#19:46:23 +BR-189-680|2016-01-11#01:28:14|2016-01-11#18:00:47 +ZW-852-196|2016-08-01#11:40:34|2016-08-01#14:17:08 +OD-207-479|2016-03-22#02:04:18|2016-03-22#22:05:35 +TL-926-685|2016-11-09#04:49:39|2016-11-09#16:23:53 +MP-843-782|2016-03-12#00:03:39|2016-03-12#14:08:41 +RB-148-423|2016-06-08#06:28:27|2016-06-08#16:19:44 +SX-733-715|2016-03-21#03:30:39|2016-03-21#15:16:01 +OH-748-377|2016-08-25#12:31:30|2016-08-25#18:17:25 +SX-733-715|2016-08-06#09:02:13|2016-08-06#15:04:22 +HK-208-572|2016-06-01#07:24:11|2016-06-01#16:23:04 +OR-254-541|2016-11-27#07:51:48|2016-11-27#20:00:00 +RK-121-202|2016-09-27#07:29:55|2016-09-27#22:05:34 +FP-408-494|2016-12-17#06:33:27|2016-12-17#13:09:50 +RD-195-981|2016-07-06#04:58:34|2016-07-06#17:53:47 +HE-160-974|2016-10-28#00:53:54|2016-10-28#15:01:05 +LY-652-510|2016-09-13#10:49:53|2016-09-13#18:16:55 +VI-487-543|2016-09-10#12:31:23|2016-09-10#20:33:39 +DF-313-963|2016-07-07#00:14:26|2016-07-07#22:34:33 +VA-533-848|2016-01-22#06:15:46|2016-01-22#20:16:35 +SV-260-690|2016-02-07#06:15:46|2016-02-07#14:19:00 +CX-427-230|2016-07-27#05:41:26|2016-07-27#13:31:51 +CN-977-298|2016-06-20#02:40:02|2016-06-20#23:36:28 +CD-442-830|2016-05-16#08:18:06|2016-05-16#13:40:59 +KS-729-919|2016-03-12#04:03:19|2016-03-12#16:13:21 +FP-408-494|2016-09-13#03:44:53|2016-09-13#23:32:59 +UI-370-311|2016-10-11#01:12:03|2016-10-11#22:36:25 +KS-729-919|2016-07-18#06:24:03|2016-07-18#14:43:52 +UI-370-311|2016-02-04#04:45:34|2016-02-04#22:58:56 +SX-537-165|2016-01-05#02:31:32|2016-01-05#17:17:47 +HE-160-974|2016-11-23#09:54:07|2016-11-23#14:07:32 +TL-926-685|2016-11-01#05:56:47|2016-11-01#22:19:35 +WV-489-506|2016-04-16#10:54:20|2016-04-16#18:12:04 +CD-442-830|2016-08-21#01:44:52|2016-08-21#13:51:11 +SV-260-690|2016-10-11#07:52:38|2016-10-11#22:03:19 +BE-724-857|2016-11-07#12:42:08|2016-11-07#15:24:46 +LM-352-835|2016-11-09#07:28:21|2016-11-09#23:57:44 +UI-370-311|2016-10-10#08:29:42|2016-10-10#22:35:09 +SX-733-715|2016-06-05#06:02:56|2016-06-05#15:57:27 +BD-896-313|2016-03-19#07:47:53|2016-03-19#14:47:30 +LX-467-684|2016-09-12#00:53:58|2016-09-12#13:40:31 +LX-467-684|2016-09-07#01:40:44|2016-09-07#23:14:30 +RD-195-981|2016-11-08#10:37:34|2016-11-08#13:49:21 +IW-281-339|2016-03-15#09:14:20|2016-03-15#15:53:31 +JE-952-459|2016-07-27#01:19:10|2016-07-27#15:22:51 +CD-442-830|2016-08-18#04:24:04|2016-08-18#20:51:59 +QY-583-692|2016-02-03#09:56:00|2016-02-03#18:51:57 +SX-733-715|2016-11-11#03:33:33|2016-11-11#20:26:00 +CX-427-230|2016-08-18#07:40:46|2016-08-18#16:57:33 +NS-789-344|2016-11-19#07:44:28|2016-11-19#15:38:57 +ZW-852-196|2016-01-23#02:42:08|2016-01-23#17:58:47 +TV-859-893|2016-09-28#10:47:55|2016-09-28#14:06:08 +CN-977-298|2016-07-09#06:42:37|2016-07-09#14:22:17 +IU-243-936|2016-02-09#12:29:55|2016-02-09#23:08:02 +DX-384-493|2016-06-26#02:51:25|2016-06-26#17:56:51 +EG-783-301|2016-03-06#02:00:08|2016-03-06#17:32:19 +ZL-160-996|2016-08-02#07:49:56|2016-08-02#19:23:08 +TG-407-535|2016-10-02#08:23:03|2016-10-02#20:08:48 +VA-533-848|2016-05-01#09:29:15|2016-05-01#22:17:40 +SX-733-715|2016-10-21#00:06:41|2016-10-21#13:54:36 +BA-269-571|2016-11-14#02:05:02|2016-11-14#13:35:54 +FP-408-494|2016-08-22#01:29:55|2016-08-22#14:43:01 +BK-127-891|2016-04-01#10:33:12|2016-04-01#17:59:51 +SX-733-715|2016-12-25#02:03:24|2016-12-25#18:29:41 +KK-602-197|2016-05-24#06:39:45|2016-05-24#18:20:42 +LZ-691-640|2016-10-13#11:58:44|2016-10-13#15:31:08 +JE-952-459|2016-05-18#01:12:06|2016-05-18#16:42:32 +IZ-849-395|2016-10-20#05:31:20|2016-10-20#13:38:58 +DX-384-493|2016-01-17#04:24:33|2016-01-17#18:07:01 +DB-661-122|2016-03-01#06:25:21|2016-03-01#20:08:19 +BA-269-571|2016-02-28#01:13:28|2016-02-28#21:44:59 +DX-384-493|2016-12-03#04:50:43|2016-12-03#21:14:52 +IW-281-339|2016-05-06#04:00:06|2016-05-06#15:34:57 +RN-254-731|2016-07-19#08:15:27|2016-07-19#17:47:57 +TP-344-975|2016-10-19#05:00:10|2016-10-19#14:02:02 +IW-281-339|2016-04-06#06:05:13|2016-04-06#23:48:14 +FP-408-494|2016-12-06#08:26:59|2016-12-06#20:06:06 +IW-281-339|2016-06-13#00:28:17|2016-06-13#15:47:03 +LM-352-835|2016-12-27#10:45:25|2016-12-27#22:09:38 +DX-384-493|2016-06-10#10:08:17|2016-06-10#22:59:18 +KS-660-935|2016-05-08#08:50:48|2016-05-08#23:47:58 +IU-243-936|2016-05-16#03:14:01|2016-05-16#19:32:52 +TR-445-782|2016-07-16#00:43:00|2016-07-16#14:22:07 +SU-781-702|2016-02-17#07:43:52|2016-02-17#13:26:16 +KX-431-483|2016-06-03#10:54:04|2016-06-03#14:26:38 +RK-121-202|2016-01-15#01:07:14|2016-01-15#23:45:29 +LZ-691-640|2016-02-08#06:15:45|2016-02-08#14:15:15 +TR-445-782|2016-03-19#04:26:26|2016-03-19#23:18:02 +QY-583-692|2016-05-19#08:32:30|2016-05-19#15:18:08 +PK-528-510|2016-03-23#07:32:01|2016-03-23#15:11:09 +PE-530-455|2016-04-04#03:17:21|2016-04-04#22:49:15 +EB-804-664|2016-01-16#03:03:55|2016-01-16#16:12:03 +FE-727-520|2016-11-17#04:42:14|2016-11-17#23:01:06 +ZZ-667-538|2016-10-08#11:41:21|2016-10-08#23:58:08 +TR-445-782|2016-12-06#05:50:28|2016-12-06#15:11:12 +YL-561-608|2016-07-06#09:13:18|2016-07-06#17:08:53 +BR-189-680|2016-07-20#05:28:30|2016-07-20#13:55:36 +QC-621-143|2016-10-18#11:53:50|2016-10-18#16:27:24 +KS-729-919|2016-03-06#02:25:31|2016-03-06#20:28:50 +LZ-691-640|2016-03-05#05:31:49|2016-03-05#16:59:14 +TV-859-893|2016-03-02#03:04:59|2016-03-02#20:18:42 +NT-608-584|2016-04-16#03:19:56|2016-04-16#15:15:09 +RK-121-202|2016-07-17#09:37:57|2016-07-17#17:43:35 +EZ-678-384|2016-03-03#05:09:55|2016-03-03#16:51:43 +SV-260-690|2016-10-28#04:47:56|2016-10-28#14:35:46 +YL-561-608|2016-10-26#04:53:32|2016-10-26#21:26:56 +VI-487-543|2016-05-03#10:57:48|2016-05-03#21:17:02 +DX-523-950|2016-11-13#07:38:55|2016-11-13#23:42:11 +QC-621-143|2016-10-25#03:22:05|2016-10-25#20:29:26 +UI-370-311|2016-02-06#12:21:07|2016-02-06#13:31:31 +CD-442-830|2016-06-03#07:15:02|2016-06-03#17:08:47 +AQ-279-975|2016-02-23#12:41:45|2016-02-23#21:14:55 +TL-926-685|2016-09-19#11:10:16|2016-09-19#20:08:44 +OS-997-817|2016-10-18#04:29:26|2016-10-18#13:35:28 +TP-344-975|2016-09-02#04:52:37|2016-09-02#17:03:04 +BK-127-891|2016-05-18#00:09:51|2016-05-18#20:03:10 +EG-783-301|2016-10-21#09:19:11|2016-10-21#20:35:15 +FY-806-579|2016-11-10#08:15:36|2016-11-10#17:19:24 +BE-724-857|2016-10-07#09:03:48|2016-10-07#21:47:26 +UE-470-645|2016-04-22#00:03:20|2016-04-22#17:34:31 +TG-407-535|2016-06-07#00:01:29|2016-06-07#19:32:33 +LX-467-684|2016-01-28#01:54:11|2016-01-28#21:31:49 +QC-621-143|2016-06-08#08:35:38|2016-06-08#21:49:47 +ZL-160-996|2016-11-10#04:13:18|2016-11-10#15:02:18 +UY-706-428|2016-06-08#09:10:25|2016-06-08#22:54:42 +HU-529-141|2016-04-23#05:15:50|2016-04-23#13:08:55 +AP-330-773|2016-12-26#03:15:26|2016-12-26#21:43:53 +IU-243-936|2016-07-26#10:18:13|2016-07-26#15:22:48 +OS-997-817|2016-03-28#12:15:14|2016-03-28#20:13:41 +HK-208-572|2016-07-09#01:22:43|2016-07-09#14:38:23 +QC-621-143|2016-06-08#03:06:29|2016-06-08#23:54:35 +SX-733-715|2016-08-17#08:55:14|2016-08-17#15:16:47 +DF-313-963|2016-12-16#11:48:02|2016-12-16#21:25:20 +FE-727-520|2016-05-16#02:58:47|2016-05-16#23:45:53 +OR-254-541|2016-10-25#11:17:18|2016-10-25#23:57:29 +DF-313-963|2016-05-15#04:28:11|2016-05-15#16:00:01 +TK-620-337|2016-06-24#10:25:08|2016-06-24#19:46:23 +AX-747-749|2016-03-21#12:40:16|2016-03-21#21:16:34 +MR-373-420|2016-10-06#08:26:59|2016-10-06#19:08:35 +MR-373-420|2016-12-12#09:53:14|2016-12-12#15:36:08 +BE-724-857|2016-01-16#01:44:02|2016-01-16#19:11:09 +AQ-279-975|2016-09-07#11:43:03|2016-09-07#19:01:19 +ZS-645-652|2016-06-24#10:03:21|2016-06-24#19:57:57 +DX-384-493|2016-01-24#06:47:53|2016-01-24#16:41:39 +TV-859-893|2016-11-28#12:55:33|2016-11-28#16:02:11 +SN-803-686|2016-06-20#00:15:06|2016-06-20#19:42:00 +AP-330-773|2016-06-09#00:59:32|2016-06-09#20:39:52 +RD-195-981|2016-06-16#08:54:04|2016-06-16#22:51:27 +UI-370-311|2016-10-15#07:24:25|2016-10-15#19:38:22 +TR-445-782|2016-11-13#07:37:21|2016-11-13#20:50:20 +OD-207-479|2016-11-04#02:20:42|2016-11-04#14:30:16 +AX-747-749|2016-09-03#04:39:23|2016-09-03#15:52:46 +SX-733-715|2016-07-20#05:55:45|2016-07-20#17:14:29 +QC-621-143|2016-05-17#08:19:46|2016-05-17#13:37:14 +NR-929-164|2016-01-17#03:53:38|2016-01-17#15:26:07 +WO-435-877|2016-12-24#04:29:05|2016-12-24#14:49:53 +ZL-160-996|2016-02-12#03:28:53|2016-02-12#15:57:18 +GC-559-600|2016-01-22#11:48:59|2016-01-22#22:41:24 +LZ-691-640|2016-07-23#11:40:21|2016-07-23#19:02:21 +DF-313-963|2016-02-01#10:30:51|2016-02-01#22:25:05 +QC-621-143|2016-12-21#02:51:21|2016-12-21#20:23:50 +BU-195-109|2016-06-19#09:22:50|2016-06-19#19:58:40 +SN-803-686|2016-02-21#05:48:10|2016-02-21#14:34:40 +EZ-678-384|2016-08-02#07:22:38|2016-08-02#13:13:24 +RK-121-202|2016-10-16#01:34:05|2016-10-16#18:48:54 +GC-559-600|2016-12-24#04:18:58|2016-12-24#22:17:07 +IU-243-936|2016-11-20#03:15:35|2016-11-20#21:50:07 +MB-314-398|2016-11-25#03:51:47|2016-11-25#14:19:47 +GC-559-600|2016-03-04#10:37:44|2016-03-04#17:42:22 +NS-789-344|2016-02-02#12:55:55|2016-02-02#22:50:49 +ZL-160-996|2016-12-21#12:28:30|2016-12-21#22:33:45 +WO-435-877|2016-05-21#03:55:30|2016-05-21#16:58:57 +BK-127-891|2016-03-02#12:30:23|2016-03-02#14:44:53 +NR-929-164|2016-04-11#01:09:17|2016-04-11#18:30:08 +GC-559-600|2016-04-03#09:00:02|2016-04-03#18:04:48 +KX-431-483|2016-04-23#11:05:15|2016-04-23#17:11:28 +TP-344-975|2016-06-18#04:36:41|2016-06-18#18:35:12 +OC-962-561|2016-01-21#05:14:15|2016-01-21#22:15:06 +TU-842-739|2016-11-15#08:34:59|2016-11-15#20:58:26 +QC-621-143|2016-05-02#08:36:45|2016-05-02#19:26:33 +HK-208-572|2016-07-19#04:36:08|2016-07-19#16:26:39 +TL-926-685|2016-03-03#07:47:16|2016-03-03#17:25:14 +QY-583-692|2016-04-17#07:09:25|2016-04-17#13:20:19 +BR-189-680|2016-04-12#06:59:43|2016-04-12#18:46:45 +EG-783-301|2016-11-12#12:05:28|2016-11-12#16:56:08 +UI-370-311|2016-12-22#08:54:43|2016-12-22#21:03:12 +RK-121-202|2016-08-02#12:43:41|2016-08-02#17:12:26 +DF-313-963|2016-04-08#12:19:59|2016-04-08#13:05:11 +QC-621-143|2016-12-19#05:57:18|2016-12-19#19:14:12 +TP-344-975|2016-01-27#09:16:31|2016-01-27#13:44:01 +SX-733-715|2016-03-19#09:09:02|2016-03-19#15:20:35 +LY-652-510|2016-09-03#10:09:01|2016-09-03#23:33:09 +ZW-852-196|2016-06-21#06:52:27|2016-06-21#22:20:23 +VI-487-543|2016-07-27#09:22:12|2016-07-27#13:25:29 +AX-747-749|2016-01-03#06:54:38|2016-01-03#23:21:53 +VI-487-543|2016-04-21#05:56:37|2016-04-21#15:25:33 +TU-842-739|2016-02-14#06:50:41|2016-02-14#14:52:00 +VI-487-543|2016-12-09#04:35:33|2016-12-09#13:49:14 +WN-514-764|2016-06-06#01:55:57|2016-06-06#16:40:14 +HK-208-572|2016-10-24#05:23:42|2016-10-24#13:29:24 +MA-299-333|2016-08-18#00:47:41|2016-08-18#15:10:38 +TO-702-756|2016-12-06#01:45:08|2016-12-06#21:52:58 +FP-408-494|2016-07-03#05:20:15|2016-07-03#23:30:00 +QC-621-143|2016-12-08#08:17:41|2016-12-08#15:51:24 +PE-530-455|2016-06-21#03:57:11|2016-06-21#14:18:14 +TV-859-893|2016-02-24#11:44:12|2016-02-24#17:46:23 +MA-299-333|2016-02-14#07:41:00|2016-02-14#18:01:47 +OD-207-479|2016-12-17#01:52:36|2016-12-17#19:37:39 +DJ-493-878|2016-04-04#01:10:58|2016-04-04#14:32:59 +LX-467-684|2016-06-23#10:31:46|2016-06-23#21:34:02 +LF-857-120|2016-05-23#07:25:43|2016-05-23#20:22:05 +DI-505-218|2016-02-17#06:01:19|2016-02-17#20:09:45 +VC-586-206|2016-09-03#01:09:00|2016-09-03#16:56:11 +OR-254-541|2016-10-11#05:55:29|2016-10-11#21:24:54 +RK-121-202|2016-11-28#08:01:52|2016-11-28#23:04:22 +UI-370-311|2016-12-23#03:19:56|2016-12-23#15:41:35 +DX-384-493|2016-06-23#11:00:15|2016-06-23#19:13:07 +TV-859-893|2016-02-27#07:39:26|2016-02-27#17:54:01 +RD-195-981|2016-03-24#07:03:41|2016-03-24#22:37:26 +WO-435-877|2016-09-18#06:48:36|2016-09-18#22:47:02 +IU-243-936|2016-07-21#10:40:20|2016-07-21#23:14:00 +TR-445-782|2016-02-14#04:39:26|2016-02-14#16:40:06 +PE-530-455|2016-09-26#04:04:28|2016-09-26#22:13:42 +OR-254-541|2016-05-18#07:04:03|2016-05-18#14:00:14 +BU-195-109|2016-03-10#01:41:24|2016-03-10#20:52:16 +CD-442-830|2016-09-12#09:27:27|2016-09-12#13:32:15 +BU-195-109|2016-05-09#12:19:34|2016-05-09#23:31:04 +VI-487-543|2016-04-18#11:02:42|2016-04-18#19:22:17 +FY-806-579|2016-08-22#03:27:16|2016-08-22#15:24:38 +VA-533-848|2016-04-15#10:11:10|2016-04-15#21:02:15 +ZS-645-652|2016-11-07#00:05:15|2016-11-07#19:52:06 +MB-314-398|2016-08-07#00:55:44|2016-08-07#19:12:05 +NR-929-164|2016-03-16#01:16:08|2016-03-16#20:50:20 +VI-487-543|2016-11-24#00:38:15|2016-11-24#16:37:59 +BR-189-680|2016-02-21#12:52:20|2016-02-21#15:12:22 +OR-254-541|2016-11-13#10:02:33|2016-11-13#13:23:52 +GC-559-600|2016-12-09#05:57:24|2016-12-09#21:37:23 +BU-195-109|2016-12-06#12:06:10|2016-12-06#14:29:43 +IW-281-339|2016-08-13#00:23:09|2016-08-13#13:02:54 +UE-470-645|2016-03-23#11:56:42|2016-03-23#14:35:39 +WO-435-877|2016-11-12#01:37:28|2016-11-12#21:47:39 +KS-729-919|2016-11-26#09:10:49|2016-11-26#15:06:14 +TK-620-337|2016-04-06#12:00:06|2016-04-06#16:34:43 +TL-926-685|2016-04-04#12:44:05|2016-04-04#23:15:19 +AP-330-773|2016-07-09#10:59:12|2016-07-09#18:34:13 +UI-370-311|2016-03-08#08:48:52|2016-03-08#19:01:48 +EB-804-664|2016-09-08#01:18:42|2016-09-08#15:10:11 +TR-445-782|2016-07-24#05:51:56|2016-07-24#22:10:09 +HK-208-572|2016-03-20#08:07:23|2016-03-20#17:24:57 +AQ-279-975|2016-06-14#11:15:45|2016-06-14#22:15:23 +AP-330-773|2016-09-27#01:53:22|2016-09-27#14:46:00 +TP-344-975|2016-04-04#04:44:06|2016-04-04#20:37:19 +BR-189-680|2016-09-06#09:59:48|2016-09-06#18:57:47 +SU-781-702|2016-05-06#10:07:09|2016-05-06#20:40:06 +FE-727-520|2016-05-04#12:27:48|2016-05-04#13:46:40 +DF-313-963|2016-09-10#03:35:18|2016-09-10#22:02:53 +HK-208-572|2016-01-03#12:15:28|2016-01-03#18:40:05 +BE-724-857|2016-02-21#07:00:30|2016-02-21#20:54:40 +AX-747-749|2016-02-17#06:25:27|2016-02-17#20:47:33 +VT-991-598|2016-01-11#03:15:43|2016-01-11#14:47:26 +TG-407-535|2016-11-13#04:28:24|2016-11-13#19:13:03 +FY-806-579|2016-02-26#03:14:57|2016-02-26#14:52:59 +AE-813-816|2016-02-25#00:33:10|2016-02-25#23:24:32 +TR-445-782|2016-01-28#06:07:25|2016-01-28#13:53:56 +LF-857-120|2016-02-07#04:32:49|2016-02-07#18:56:04 +OD-207-479|2016-08-23#00:33:33|2016-08-23#13:07:40 +EZ-678-384|2016-09-21#01:42:29|2016-09-21#18:28:38 +RK-121-202|2016-06-19#11:10:49|2016-06-19#13:23:57 +BU-195-109|2016-05-06#11:07:33|2016-05-06#21:09:09 +TR-445-782|2016-02-23#05:05:42|2016-02-23#18:02:37 +LM-352-835|2016-09-21#06:17:23|2016-09-21#21:28:50 +OH-748-377|2016-07-18#00:40:17|2016-07-18#21:36:47 +SX-733-715|2016-07-06#04:54:44|2016-07-06#13:54:08 +WM-273-485|2016-04-08#12:48:26|2016-04-08#23:47:34 +PK-528-510|2016-07-24#04:22:04|2016-07-24#22:55:13 +LB-167-847|2016-04-06#10:27:56|2016-04-06#19:08:03 +CX-427-230|2016-04-19#03:19:11|2016-04-19#16:09:36 +VA-533-848|2016-03-03#01:26:08|2016-03-03#20:27:53 +HK-208-572|2016-06-03#10:50:01|2016-06-03#13:47:38 +SV-260-690|2016-09-04#06:55:07|2016-09-04#22:37:40 +TG-407-535|2016-10-13#08:50:55|2016-10-13#23:18:59 +RK-121-202|2016-08-10#00:11:44|2016-08-10#23:56:10 +BE-724-857|2016-02-27#00:11:19|2016-02-27#20:58:31 +MR-373-420|2016-10-20#02:24:37|2016-10-20#17:35:35 +AP-330-773|2016-07-26#12:30:25|2016-07-26#22:27:27 +BR-189-680|2016-03-11#08:11:53|2016-03-11#15:48:56 +IU-243-936|2016-06-20#01:30:53|2016-06-20#14:44:56 +TO-702-756|2016-09-10#03:11:48|2016-09-10#18:20:47 +RR-599-847|2016-01-17#07:53:52|2016-01-17#13:29:04 +VI-487-543|2016-01-22#08:37:22|2016-01-22#16:16:18 +LM-352-835|2016-02-16#11:08:42|2016-02-16#18:44:22 +CX-427-230|2016-04-25#01:27:00|2016-04-25#18:46:45 +OS-997-817|2016-02-15#03:28:55|2016-02-15#20:54:31 +TR-445-782|2016-08-19#09:47:39|2016-08-19#20:05:47 +HU-529-141|2016-01-27#12:47:10|2016-01-27#13:43:05 +QC-621-143|2016-11-15#02:31:24|2016-11-15#17:40:40 +UE-470-645|2016-06-27#02:15:10|2016-06-27#20:04:21 +SX-537-165|2016-05-08#04:03:02|2016-05-08#13:32:29 +LZ-691-640|2016-05-02#01:07:43|2016-05-02#16:54:10 +BD-896-313|2016-09-04#02:14:39|2016-09-04#22:57:42 +ZL-160-996|2016-11-12#07:11:21|2016-11-12#13:41:37 +RR-599-847|2016-10-28#11:11:29|2016-10-28#20:31:01 +ZT-595-177|2016-02-06#12:42:17|2016-02-06#21:27:10 +DE-980-977|2016-12-04#02:19:05|2016-12-04#19:24:22 +LB-167-847|2016-06-01#06:40:20|2016-06-01#14:59:57 +TG-407-535|2016-04-20#10:22:27|2016-04-20#15:41:52 +DF-313-963|2016-04-18#00:56:34|2016-04-18#16:56:57 +LF-857-120|2016-02-22#05:06:19|2016-02-22#13:23:38 +SV-260-690|2016-05-19#04:29:12|2016-05-19#22:02:54 +BR-189-680|2016-12-01#06:13:52|2016-12-01#14:50:56 +TV-859-893|2016-01-04#06:02:15|2016-01-04#14:36:44 +TP-344-975|2016-02-11#05:18:59|2016-02-11#23:06:39 +DI-505-218|2016-06-09#04:17:29|2016-06-09#20:28:07 +OS-997-817|2016-10-11#02:05:11|2016-10-11#23:08:36 +TL-926-685|2016-05-20#03:00:51|2016-05-20#16:43:45 +WM-273-485|2016-08-05#07:17:46|2016-08-05#23:25:59 +TL-926-685|2016-08-24#00:42:28|2016-08-24#19:27:56 +DX-523-950|2016-05-28#05:19:25|2016-05-28#21:45:56 +RN-254-731|2016-11-06#04:40:35|2016-11-06#15:39:35 +BR-189-680|2016-08-07#01:33:59|2016-08-07#19:39:39 +NR-929-164|2016-01-28#08:39:50|2016-01-28#22:28:37 +QC-621-143|2016-01-15#11:38:51|2016-01-15#13:44:04 +DI-505-218|2016-02-25#03:29:43|2016-02-25#21:34:56 +EG-783-301|2016-08-18#00:44:45|2016-08-18#13:00:19 +FP-408-494|2016-01-13#07:12:13|2016-01-13#15:54:54 +BA-269-571|2016-06-23#00:59:49|2016-06-23#15:04:16 +FL-226-255|2016-01-09#12:46:31|2016-01-09#21:11:03 +UE-470-645|2016-10-05#08:46:11|2016-10-05#22:29:42 +DE-980-977|2016-11-05#10:01:19|2016-11-05#19:59:13 +WV-489-506|2016-03-02#08:18:43|2016-03-02#15:23:37 +AP-330-773|2016-01-04#03:06:38|2016-01-04#17:11:58 +KS-660-935|2016-01-26#02:32:51|2016-01-26#22:00:19 +TR-445-782|2016-05-01#07:24:52|2016-05-01#23:28:28 +OI-680-389|2016-02-25#12:51:05|2016-02-25#17:32:03 +LF-857-120|2016-04-27#03:44:00|2016-04-27#14:40:07 +BK-127-891|2016-09-05#00:06:01|2016-09-05#18:28:01 +OH-748-377|2016-02-17#00:19:29|2016-02-17#19:29:19 +BU-195-109|2016-01-27#11:19:58|2016-01-27#16:47:06 +UY-706-428|2016-11-24#10:46:59|2016-11-24#15:13:03 +XW-317-679|2016-01-02#07:46:56|2016-01-02#16:39:20 +MA-299-333|2016-06-15#03:41:07|2016-06-15#15:17:32 +QC-621-143|2016-01-01#01:40:26|2016-01-01#21:30:41 +BR-189-680|2016-07-28#04:54:42|2016-07-28#21:24:44 +TR-445-782|2016-11-09#12:29:00|2016-11-09#21:01:39 +BK-127-891|2016-08-25#03:09:26|2016-08-25#23:45:46 +ZT-595-177|2016-05-23#11:39:35|2016-05-23#14:02:28 +TL-926-685|2016-06-19#08:55:00|2016-06-19#16:26:53 +SN-803-686|2016-05-15#04:31:28|2016-05-15#13:57:04 +UY-706-428|2016-07-01#12:20:09|2016-07-01#18:28:27 +AP-330-773|2016-10-27#04:59:38|2016-10-27#19:31:04 +MA-299-333|2016-04-04#03:57:28|2016-04-04#16:06:10 +MB-314-398|2016-08-12#12:20:15|2016-08-12#13:29:25 +IW-281-339|2016-10-09#05:21:23|2016-10-09#14:44:43 +ZL-160-996|2016-10-14#04:08:38|2016-10-14#23:39:37 +GC-559-600|2016-10-12#01:21:59|2016-10-12#20:27:03 +UI-370-311|2016-05-08#06:40:08|2016-05-08#18:12:36 +AN-523-765|2016-05-25#05:58:31|2016-05-25#13:24:17 +UI-370-311|2016-11-16#10:42:55|2016-11-16#18:03:51 +QC-621-143|2016-11-04#10:25:22|2016-11-04#22:32:51 +RK-121-202|2016-04-05#00:39:40|2016-04-05#14:00:51 +UI-370-311|2016-12-07#01:35:21|2016-12-07#23:23:57 +CD-442-830|2016-09-08#03:12:36|2016-09-08#18:38:43 +YL-561-608|2016-07-27#06:49:02|2016-07-27#13:42:05 +KS-660-935|2016-08-24#02:51:09|2016-08-24#22:59:03 +EB-804-664|2016-05-16#09:50:16|2016-05-16#14:35:55 +TU-842-739|2016-08-25#12:56:13|2016-08-25#14:58:40 +OE-826-436|2016-06-23#03:10:23|2016-06-23#23:35:50 +WM-273-485|2016-07-08#04:47:09|2016-07-08#19:17:21 +DE-980-977|2016-04-13#08:20:53|2016-04-13#21:36:48 +TU-842-739|2016-10-17#02:06:05|2016-10-17#21:54:51 +FE-727-520|2016-10-09#00:23:45|2016-10-09#15:39:42 +BR-189-680|2016-01-22#10:17:25|2016-01-22#13:59:39 +VA-533-848|2016-12-19#05:40:32|2016-12-19#22:23:40 +BR-189-680|2016-11-28#05:07:26|2016-11-28#14:06:10 +YL-561-608|2016-05-19#12:27:18|2016-05-19#13:11:34 +DE-980-977|2016-10-23#05:02:50|2016-10-23#20:01:38 +SU-781-702|2016-02-05#03:22:18|2016-02-05#18:39:07 +FY-806-579|2016-05-03#00:12:42|2016-05-03#20:15:09 +SV-260-690|2016-09-17#07:57:30|2016-09-17#22:11:55 +TP-344-975|2016-09-12#05:20:25|2016-09-12#19:53:37 +VI-487-543|2016-04-02#11:43:18|2016-04-02#21:16:01 +KS-729-919|2016-07-15#11:03:47|2016-07-15#15:32:23 +DB-661-122|2016-09-18#07:08:15|2016-09-18#14:50:24 +YL-561-608|2016-12-04#08:51:23|2016-12-04#16:37:06 +JM-130-917|2016-07-24#00:18:02|2016-07-24#21:39:22 +TR-445-782|2016-02-11#04:37:40|2016-02-11#16:04:11 +UI-370-311|2016-12-21#12:11:47|2016-12-21#21:06:25 +PE-530-455|2016-07-01#12:21:34|2016-07-01#17:46:14 +LM-352-835|2016-04-23#11:10:25|2016-04-23#23:34:13 +KX-431-483|2016-04-07#10:27:54|2016-04-07#14:49:58 +QC-621-143|2016-01-25#04:56:52|2016-01-25#21:46:16 +LY-652-510|2016-06-18#08:13:12|2016-06-18#17:51:18 +VA-533-848|2016-09-10#07:34:16|2016-09-10#19:48:50 +YL-561-608|2016-02-24#03:11:40|2016-02-24#22:19:48 +OS-997-817|2016-04-06#12:44:45|2016-04-06#14:56:14 +RD-195-981|2016-06-04#02:28:47|2016-06-04#23:23:36 +TG-407-535|2016-02-07#09:44:28|2016-02-07#14:32:28 +VA-533-848|2016-09-19#10:17:16|2016-09-19#17:49:53 +IU-243-936|2016-05-11#06:10:55|2016-05-11#19:29:06 +NS-789-344|2016-01-17#10:04:50|2016-01-17#20:58:28 +QC-621-143|2016-05-04#07:49:30|2016-05-04#22:39:43 +LM-352-835|2016-02-20#06:26:32|2016-02-20#20:39:56 +BK-127-891|2016-05-03#12:54:47|2016-05-03#14:22:10 +DE-980-977|2016-10-07#07:45:51|2016-10-07#21:57:05 +BU-195-109|2016-04-18#09:51:22|2016-04-18#16:39:15 +VI-487-543|2016-04-18#09:23:38|2016-04-18#18:38:45 +SX-733-715|2016-08-15#09:42:15|2016-08-15#17:08:51 +NR-929-164|2016-11-01#07:10:36|2016-11-01#16:54:13 +QY-583-692|2016-04-25#02:41:13|2016-04-25#21:31:09 +LZ-691-640|2016-07-22#11:08:44|2016-07-22#22:43:50 +BE-724-857|2016-03-24#03:58:08|2016-03-24#17:40:54 +BR-189-680|2016-04-15#00:49:48|2016-04-15#23:22:18 +OR-254-541|2016-04-10#07:27:26|2016-04-10#16:45:00 +BA-269-571|2016-03-21#07:06:42|2016-03-21#16:04:08 +QY-583-692|2016-09-18#04:02:05|2016-09-18#15:28:46 +YL-561-608|2016-05-05#05:10:59|2016-05-05#20:35:41 +RR-599-847|2016-04-14#00:54:37|2016-04-14#17:13:49 +BR-189-680|2016-10-25#09:08:15|2016-10-25#22:24:31 +PK-528-510|2016-10-28#02:30:54|2016-10-28#21:38:11 +FP-408-494|2016-11-19#12:32:31|2016-11-19#15:53:55 +LM-352-835|2016-12-05#02:30:40|2016-12-05#16:56:23 +DF-313-963|2016-11-17#05:18:11|2016-11-17#13:26:34 +TV-859-893|2016-05-28#04:12:48|2016-05-28#22:42:25 +OH-748-377|2016-12-14#08:20:37|2016-12-14#23:07:00 +NS-789-344|2016-03-09#09:15:27|2016-03-09#13:55:28 +FE-727-520|2016-12-26#09:07:28|2016-12-26#19:27:59 +NT-608-584|2016-06-16#07:30:34|2016-06-16#17:12:32 +PE-530-455|2016-11-18#11:41:17|2016-11-18#23:37:01 +TR-445-782|2016-05-07#11:09:28|2016-05-07#14:45:22 +TG-407-535|2016-01-25#11:49:52|2016-01-25#21:44:08 +FP-408-494|2016-07-23#11:28:43|2016-07-23#21:46:18 +BK-127-891|2016-09-26#04:14:15|2016-09-26#15:01:02 +XB-523-219|2016-01-19#12:01:55|2016-01-19#20:15:10 +QC-621-143|2016-06-26#06:35:44|2016-06-26#13:48:12 +BR-189-680|2016-08-04#10:35:32|2016-08-04#13:58:52 +OS-997-817|2016-12-02#11:11:39|2016-12-02#14:09:19 +DB-661-122|2016-06-04#08:35:56|2016-06-04#14:30:26 +OH-748-377|2016-04-16#06:16:14|2016-04-16#22:27:27 +BE-724-857|2016-02-24#08:31:27|2016-02-24#21:50:19 +AP-330-773|2016-05-12#10:21:01|2016-05-12#18:03:40 +BU-195-109|2016-03-03#00:44:46|2016-03-03#21:46:28 +BR-189-680|2016-12-02#10:35:33|2016-12-02#18:16:08 diff --git a/复试笔记/历年真题Python代码/1602模拟题_90min/report.txt b/复试笔记/历年真题Python代码/1602模拟题_90min/report.txt new file mode 100644 index 0000000..b741f2d --- /dev/null +++ b/复试笔记/历年真题Python代码/1602模拟题_90min/report.txt @@ -0,0 +1,14 @@ +¼645 +103 +У5λΣ +BR-189-680,20 +SX-733-715,19 +QC-621-143,18 +VI-487-543,17 +TR-445-782,16 +ۼͣʱ5λ룩 +QC-621-143,828417.0 +BR-189-680,756757.0 +UI-370-311,722708.0 +SX-733-715,701937.0 +TR-445-782,697439.0 diff --git a/复试笔记/历年真题Python代码/17/17.py b/复试笔记/历年真题Python代码/17/17.py new file mode 100644 index 0000000..1e5355d --- /dev/null +++ b/复试笔记/历年真题Python代码/17/17.py @@ -0,0 +1,81 @@ +def _2017(): + """ + `2017`年复试上机题 + **要求:** + 已知:二进制数据文件`data.bin`中存放了若干个整数,请编写程序完成如下功能: + * 编写程序读取所有数据. + * 以每相邻两个整数为一对按顺序构成二维平面上的坐标点. 例如:有数据`12`,`34`,`53`,`25`,`61`,`28`,`78`等, + 则构成六个坐标点如下:`(12, 34)`、`(34, 53)`,`(53, 25)`, `(25, 61)`, `(61, 28)`, `(28, 78)`; + * 以每个坐标点为圆心,以该点与其后面第一个点的欧氏距离为半径`r`. 计算每个圆包含的坐标点数. 计 + 算最后一个点时以其和第一个点的欧氏距离为半径. + 例如: + 坐标点`(12, 34)`的圆半径$r=\sqrt{(12-34)^2+(34-53)^2}$是坐标点`(12, 34)`与`(34, 53)`的欧式距离. + 坐标点`(28, 78)`的圆半径$r=\sqrt{(28-12)^2+(78-34)^2}$是坐标点`(28, 78)`与`(12, 34)`的欧式距离. + * 计算所有圆的点密度值,然后输出点密度值最大的`5`个坐标点以及相应圆中包含的点数和点密度值. 输出格式要求: + | 坐标点 | 包含点数 | 点密度 | + | :------------: | :-------------: | :--------------------------: | + | (x坐标,y坐标) | (占5列,右对齐) | (占7列,右对齐,保留2位小数) | + 上述文字部分不需要显示. + 其中:圆的点密度为圆包含的点数除以圆面积,如果点在圆上,则也算圆包含该点,在计算点密度时,圆心也算一个点. 计算圆面积时$\pi=3.14$. + 例如:坐标点`(2, 1)`,则该坐标点也属该坐标点的圆内的一个点. + **程序:** + :return: + """ + + def read_file(): + with open('data.txt', encoding='utf-8', mode='rt') as f: + nums = f.read().split() + nums = list(map(int, nums)) + size = len(nums) + ans = [] + for i in range(size): + if i + 1 < size: + point = [nums[i], nums[i + 1]] + else: + break + ans.append(point) + return ans + + def compute_radius(ls: list): + ans = [] + for index, t_point in enumerate(ls): + x, y = t_point[0], t_point[1] + next = index + 1 + if next >= len(ls): + next = 0 + point = ls[next] + r = ((x - point[0]) ** 2 + (y - point[1]) ** 2) ** 0.5 + ans.append([x, y, r]) + return ans + + def count_inner(point: list, points: list): + import math + c = 0 + for x, y, r in points: + d = ((x - point[0]) ** 2 + (y - point[1]) ** 2) ** 0.5 + if d <= point[2]: + c += 1 + s = math.pi * point[2] * point[2] + md = c / s + return c, md + + def computer_md(ls: list): + ans = [] + for point in ls: + c, md = count_inner(point, ls) + ans.append([point[0], point[1], c, md]) + return ans + + def print_result(ls: list): + for x, y, c, md in ls: + print('({0}, {1}) {2:>5} {3:>7.7f}'.format(x, y, c, md)) + + def main(): + arr = read_file() + arr_and_r = compute_radius(arr) + ls = computer_md(arr_and_r) + ls.sort(key=lambda x: x[3], reverse=True) + print_result(ls[:5]) + + main() +_2017() diff --git a/复试笔记/历年真题Python代码/17/17bao.py b/复试笔记/历年真题Python代码/17/17bao.py new file mode 100644 index 0000000..dd85e18 --- /dev/null +++ b/复试笔记/历年真题Python代码/17/17bao.py @@ -0,0 +1,77 @@ +def _by_2017(): + """ + ##### `2017`年保研上机题 + **要求:** + 文本文件`input.txt`里面放了一堆整数,仅仅以空格分隔, + 其中第一个整数为`k`,第二个整数代表维度,剩余的整数作为点的坐标. + 要求: + * 读取整数`k`和维度,并读取剩余的整数组成指定维度的点. + * 从所有点中找到距离最近的两个点并输出它们的坐标和距离. + * 分别输出距离这两个点最近的`k`个点的坐标 . + **程序:** + """ + + def read_file(): + with open('input.txt', encoding='utf-8') as file: + data = file.read().split() + data = list(map(int, data)) + if len(data) < 2: + return None + k = data.pop(0) + dimension = data.pop(0) + size = len(data) // dimension + points = [] + for i in range(size): + point = [] + for j in range(dimension * i, dimension * (i + 1)): + if j >= len(data): + break + point.append(int(data[j])) + points.append(point) + print('last point: {}'.format(points[-1])) + return k, dimension, points + + def count_distance(a, b): + su = 0 + for i in range(len(a)): + x, y = a[i], b[i] + su += abs(x - y) ** 2 + return su + + def point_print(point): + k = list(map(str, point)) + return ','.join(k) + + def find_close(points): + length = len(points) + p1, p2 = points[0], points[1] + min_distance = count_distance(p1, p2) + for i in range(length): + for j in range(i + 1, length): + d = count_distance(points[i], points[j]) + if d < min_distance: + min_distance = d + p1, p2 = i, j + print('p1=({}), p2=({}) distance = {:.2f}'.format(point_print(points[p1]), point_print(points[p2]), + min_distance ** 0.5)) + return p1, p2 + + def get_nearest(p, data_o: list, k): + data = sorted(data_o, key=lambda x: count_distance(data_o[p], x)) + return data[1:k + 1] + + def main(): + K, dimension, data_m = read_file() + print('k={}, dimension={}'.format(K, dimension)) + point_a, point_b = find_close(data_m) + ls_a, ls_b = get_nearest(point_a, data_m, K), get_nearest(point_b, data_m, K) + point_a, point_b = data_m[point_a], data_m[point_b] + print('the nearest {} points to point({}) is:'.format(K, point_print(point_a))) + for p in ls_a: + print('({})'.format(point_print(p)), end=' ') + print() + print('the nearest {} points to point({}) is:'.format(K, point_print(point_b))) + for p in ls_b: + print('({})'.format(point_print(p)), end=' ') + + main() diff --git a/复试笔记/历年真题Python代码/17/17baopython.py b/复试笔记/历年真题Python代码/17/17baopython.py new file mode 100644 index 0000000..7dd98c0 --- /dev/null +++ b/复试笔记/历年真题Python代码/17/17baopython.py @@ -0,0 +1,13 @@ +def read_file(url): + #读文件 + with open(url, 'r')as fp: + nums = list(map(int, fp.read().split())) #将所有数字转化为整数形式,存储到nums数组里 + return nums + + +def find_distance(nums): + #计算点距离 + k = nums[0] #先将k值存储 + dimen = nums[1] #存储维度 + nums = nums[2:] #截取点数据 + f = lambda diff --git a/复试笔记/历年真题Python代码/17/17python.py b/复试笔记/历年真题Python代码/17/17python.py new file mode 100644 index 0000000..68360e4 --- /dev/null +++ b/复试笔记/历年真题Python代码/17/17python.py @@ -0,0 +1,48 @@ +def read_file(): + #读取data数据,每相邻的两个整数保存到point列表里 + with open('data.txt', 'r')as file: + nums = file.read().split() + num = list(map(int, nums)) + size = len(num) + point = [] + for i in range(size-1): + point.append([num[i], num[i+1]]) + return point + + +def coverage(point: list): + #对每个点进行计算与下一个点的欧氏距离,将r的平方保存到point每个点的列表里 + seize = len(point) + f = lambda x, y: (x[0]-y[0])**2+(x[1]-y[1])**2 + for i in range(seize-1): + r2 = f(point[i], point[i+1]) + point[i].append(r2) + r2 = f(point[seize-1], point[0]) + point[seize-1].append(r2) + for i in point: + #计算每个点覆盖点数,用n来计数 + n = 0 + for j in point: + if f(i, j) <= i[2]: + n += 1 + i.append(n) + return point + + +def print_result(point: list): + #先将point列表进行更新,将r的平方替换为点密度,根据点密度进行排序,输出前五个 + for i in point: + i[2] = i[3]/i[2]/3.14 + point.sort(key=lambda x: x[2], reverse=True) + for i in range(5): + print('(%d,%d)%5d%7.2f' % (point[i][0], point[i][1], point[i][3], point[i][2])) + + +def main(): + point = read_file() + point = coverage(point) + print_result(point) + + +if __name__ == "__main__": + main() diff --git a/复试笔记/历年真题Python代码/17/data.txt b/复试笔记/历年真题Python代码/17/data.txt new file mode 100644 index 0000000..5a380fc --- /dev/null +++ b/复试笔记/历年真题Python代码/17/data.txt @@ -0,0 +1 @@ +12 34 53 25 61 28 78 \ No newline at end of file diff --git a/复试笔记/历年真题Python代码/1702模拟题_120min/1702.py b/复试笔记/历年真题Python代码/1702模拟题_120min/1702.py new file mode 100644 index 0000000..4999c9e --- /dev/null +++ b/复试笔记/历年真题Python代码/1702模拟题_120min/1702.py @@ -0,0 +1,115 @@ +def readWordsFromFile(url): + # ----从data.txt文件中读取所有单词------- + with open(url,'r')as fp: + lst=fp.read().split() #将读取的文件存入列表 + for i in range(len(lst)): + lst[i]=lst[i].strip(',') #去除逗号 + lst[i]=lst[i].strip('.') #去除句号 + fp.close() + return lst +def findMultiAlphaWords(lst, n): + # ----找出单词中,存在某个字母重复num次的单词----- + wlst=[] + #clst=[] + #lst=list(set(lst)) + for i in lst: + word=i.lower() #将单词所有字母小写,以便检测出现频率 + #if word not in clst: + #clst.append(word) + for j in word: + if word.count(j)>=n: #检查单词里出现频次大于n的 + wlst.append(i) + break + return wlst +def delMultiData(wlst): + # ----删除wordResultLst中重复单词的多余份数,只保留一份----- + for i in wlst: + if wlst.count(i)>1: #将出现频次单词重复的单词逐个去除 + wlst.remove(i) +def printWordLst(wlst, n): + #输出所有单词,每行输出4个单词 + for i in range(int(len(wlst)/n)+1): #先分行输出 + for j in range(n): #每行输出n个单词 + m=i*4+j + if m 1: + f = 0 + while n % i == 0: + f = 1 + n = n // i + if f: + factors.append(i) + i += 1 + return factors + + def f2(old_set, new_set): + i, j = 0, 0 + s1, s2 = len(old_set), len(new_set) + while i < s1 and j < s2: + if old_set[i] < new_set[j]: + i += 1 + elif old_set[i] > new_set[j]: + j += 1 + else: + return False + return True + + #求个数==各数因子 + for k in arr: + my_dict[k] = f1(k) + arr[0] = arr[0] if arr[0] != 1 else 2 + + # 求最大子集 + M = 0 + ans = set() + for i in range(size): + p = set() + vs = my_dict[arr[i]] + p.add(arr[i]) + for j in range(size): + this_factors = my_dict[arr[j]] + if f2(vs, this_factors): + p.add(arr[j]) + #vs = vs | this_factors + vs=vs.union(this_factors) + if len(p) > M: + M = len(p) + ans = p + + return ans + + +if __name__ == '__main__': + arr = [] + for i in range(20000): + arr.append(randint(0, 32768)) + print(_2018(arr)) diff --git a/复试笔记/历年真题Python代码/18/18python.py b/复试笔记/历年真题Python代码/18/18python.py new file mode 100644 index 0000000..9c22ba9 --- /dev/null +++ b/复试笔记/历年真题Python代码/18/18python.py @@ -0,0 +1,67 @@ +from random import randint +import struct +""" + 在20000个数中找一个满足下列条件的最大集合: + 集合中所有数之间的最大公因数是1(即两两互质) + :param arr: + :return: + """ + + +def prime_num(n): + #查找n的因子 + num = set() + i = 2 + while i <= n: + if n % i == 0: + num.add(i) + n = int(n/i) + else: + i += 1 + return num + + +def prime_num2(n): + num = set() + while n != 1: + for i in range(2, n+1): + if n % i == 0: + num.add(i) #如果有小因子,则添加到因子集合里去 + n = int(n/i) + break + return num + + +def find_list(): + with open("input.txt", "rb")as fp: #读二进制文件 + size = struct.calcsize('i') + f = fp.read(size) + point = [] + while f: + value = struct.unpack('i', f)[0] + point.append(value) + f = fp.read(size) + point = sorted(set(point)) #将读取的数字进行从小到大排序 + #print(point) + factors = set() #建立已存在的因子集合 + res = [] #存储目标数字集合 + for i in point: + num = prime_num(i) #求出每个数字的因子序列 + if num & factors: #如果已存在因子,则舍弃该数字 + continue + else: + res.append(i) + factors = factors | num + return res + + +''' + with open("input.txt", "wb")as fp: + for i in range(20): + data = struct.pack('i', randint(-5, 100)) + fp.write(data) +''' + + +if __name__ == '__main__': + print(find_list()) diff --git a/复试笔记/历年真题Python代码/18/input.txt b/复试笔记/历年真题Python代码/18/input.txt new file mode 100644 index 0000000..7398a78 Binary files /dev/null and b/复试笔记/历年真题Python代码/18/input.txt differ diff --git a/复试笔记/历年真题Python代码/1802模拟题_95min/1802.py b/复试笔记/历年真题Python代码/1802模拟题_95min/1802.py new file mode 100644 index 0000000..0638f64 --- /dev/null +++ b/复试笔记/历年真题Python代码/1802模拟题_95min/1802.py @@ -0,0 +1,88 @@ +import numpy as np +import re +def func1(m,n): + #判断两个整数是否互质 + if m<=1 or n<=1: + return False + top=int(min(m,n)**0.5)+1 #以最小的数的平方根位上界寻找公因子 + for i in range(2,top): + if m%i==0 and n%i==0: + return False + return True +def func2(lst:list): + #求一个整数数列的逆序数 + count=0 + for i in range(len(lst)-1): #计算每个数的逆序数 + for j in range(i+1,len(lst)): #查看后边是否有小于自己的数 + if lst[i]>lst[j]: + count+=1 + return count +def func3(mat1,mat2): + #矩阵相乘 + return list(np.array(tuple(mat1))*np.array(tuple(mat2))) + +def func4(lst): + #一维列表转成二维列表 + n=int(len(lst)**0.5) #根据列表长度判断维度n + new=[] #外层列表 + for i in range(n): + new1=[] #要添加的内层列表 + for j in range(n): + new1.append(lst[i*n+j]) + new.append(new1) + return new +def func5(s): + #测试词频,输出词频最高的三个词 + res=s.split() + keys=list(set(res)) #建立关键词列表 + values=[res.count(i) for i in keys] #建立值列表 + dic=sorted(dict(zip(keys,values)).items(),key=lambda x:x[1],reverse=True)#建立词典 + res.clear() + if len(dic)<3: + for i in dic: + res.append(i[0]) + else: + for i in range(3): + res.append(dic[i][0]) + return res +def func6(s,t): + #确定其Jaccard系数的三个统计量a,b,c + a=b=c=0 #初始化为0,开始计数 + st=set(s+t) + for i in st: + if i in s and i in t: #a情况 + a+=1 + elif i in s and i not in t: #b情况 + b+=1 + else: #c情况 + c+=1 + return (a,b,c) +def func7(s): + #统计一个非空字符串中出现次数最多的字符及其出现次数。 + s=s.upper() + m=0 #标记最大次数 + for i in s: + if s.count(i)>m: + m=s.count(i) + w=i #标记最大字母 + return [w,m] +def func8(s): + # + nums=re.findall('\d{3,5}',s) + values=[sum(list(map(int,list(i))))/len(i) for i in nums] + dic=sorted(dict(zip(list(map(int,nums)),values)).items(),key=lambda x:x[1],reverse=True) + #print(dic) + keys=[] + for key,values in dic: + keys.append(key) + return keys +if __name__=='__main__': + #print(func1(2,3),func1(4,8)) + #print(func2([4,3,2,1]),func2([1,3,2,4])) + #print(func3([[1,2]],[[1],[2]])) #未作出 + #print(func4([1]),func4([2,1,3,4]) + #print(func5('hello hi hello apple'),func5('a')) #有点小瑕疵 + #print(func6('his','she'),func6('hello','python')) + #print(func7('1aA'),func7('a')) + print(func8('123a4567 1'),func8('1234')) + pass diff --git a/复试笔记/历年真题Python代码/1802模拟题_95min/Python2018-2.doc b/复试笔记/历年真题Python代码/1802模拟题_95min/Python2018-2.doc new file mode 100644 index 0000000..5d900d5 Binary files /dev/null and b/复试笔记/历年真题Python代码/1802模拟题_95min/Python2018-2.doc differ diff --git a/复试笔记/历年真题Python代码/19/01.py b/复试笔记/历年真题Python代码/19/01.py new file mode 100644 index 0000000..4508a41 --- /dev/null +++ b/复试笔记/历年真题Python代码/19/01.py @@ -0,0 +1,26 @@ +def read_file(): + with open('data.txt', encoding='utf-8') as file: + arr = file.read().split() + return list(map(int, arr)) +arr=read_file() + +def count(arr: list): + ls = [0] * 10 + for num in arr: + if num == 0: + ls[0] += 1 + else: + while num: + num, h = divmod(num, 10) + ls[h] += 1 + print(ls) +count(arr) + +def make_prime(n): + nums = [1] * n + nums[0], nums[1] = 0, 0 + for i in range(2, n): + if nums[i]: + for j in range(i * i, n, i): + nums[j] = 0 + return nums diff --git a/复试笔记/历年真题Python代码/19/19.py b/复试笔记/历年真题Python代码/19/19.py new file mode 100644 index 0000000..fa19f53 --- /dev/null +++ b/复试笔记/历年真题Python代码/19/19.py @@ -0,0 +1,108 @@ +def _2019(): + """ + (1) 编写函数read_file从文件中读取数据,将所有的整数按照其在文件中出现的顺序依次存储到数组arr中; + (2) 编写函数print将数组arr显示在屏幕上,每行显示n个数,每个整数占6列; + (3) 编写函数count统计数字0至9在数组arr所有整数中的出现次数,将结果放入数组res中(即res[0]存储数字0的出现次数, + res[1]存储数字1的出现次数,其余以此类推); + (4) 编写函数print_res将数组res显示在屏幕上,每行显示5个数,可以复用步骤(2)中print函数; + (5) 编写函数sort_array将数组arr中的整数按照因子和从小到大排序,如果两个整数的因子和相等, + 则按照它们的自然大小排序(注意:计算一个整数的因子和时包括1和其本身); + (6) 编写函数filter_array对数组arr中的整数进行筛选,结果继续保存在arr中,筛选规则如下:保留所有的偶数, + 同时保证这些偶数按照从小到大排序。说明:完成筛选之后,数组arr中的元素可以分成两部分,前半部分是有效内容, + 即所有的偶数,后半部分则是无效内容,参数size记录了数组arr中有效内容的长度(注意:筛选要求在原数组上进行, + 如使用新的辅助数组来完成筛选,扣10分); + (7) 编写函数write_file对数组arr中的有效内容(即所有偶数)进行质因数分解,并将结果输出到屏幕和文本文件output.txt中。 + 输出要求:每一个整数的质因数分解结果占一行,具体显示格式如下图所示: + :return: + """ + + def main(): + ls = read_file() + res = count(ls) + res_print(res) + d = sort_array(ls) + size = filter_arr(ls) + write_file(ls, size, d) + + def read_file(): + with open('input.txt', encoding='utf-8') as file: + arr = file.read().split() + return list(map(int, arr)) + + def arr_print(arr: list, n): + length = len(arr) + size = length // n + for i in range(size): + for j in range(i * n, (i + 1) * n): + print('{:<6}'.format(arr[j]), end='') + print() + + def count(arr: list): + ls = [0] * 10 + for num in arr: + if num == 0: + ls[0] += 1 + else: + while num: + num, h = divmod(num, 10) + ls[h] += 1 + return ls + + def res_print(res: list): + arr_print(res, 5) + + def sort_array(ls: list): + M = max(ls) + primes = make_prime(M + 1) + dic = {} + + def split(n): + p = n + i = n + res = [] + while i: + if primes[i] and n % i == 0: + n = n // i + res.append(i) + else: + i -= 1 + res.sort() + dic[p] = list(map(str, res)) + return sum(res) + + ls.sort() + ls.sort(key=lambda x: split(x)) + return dic + + def filter_arr(arr: list): + + def sort(ls: list, start, end, fun): + for i in range(start, end): + f = 1 + for j in range(start, end - i - 1): + if fun(ls[j]) > fun(ls[j + 1]): + f = 0 + ls[j], ls[j + 1] = ls[j + 1], ls[j] + if f: + break + + sort(arr, 0, len(arr), fun=lambda x: x % 2) + # arr.sort(key=lambda x:x%2) + ou_end = 0 + for i in range(len(arr)): + if arr[i] % 2 == 1: + ou_end = i + break + + sort(arr, 0, ou_end + 1, lambda x: x) + return ou_end + 1 + + def write_file(arr: list, size, dic: dict): + ans = [] + for item in arr[:size]: + ls = '*'.join(dic.get(item)) + ans.append('{}={}'.format(item, ls)) + with open('Output.txt', 'w', encoding='utf-8') as file: + file.write('\n'.join(ans)) + + main() diff --git a/复试笔记/历年真题Python代码/19/19python.py b/复试笔记/历年真题Python代码/19/19python.py new file mode 100644 index 0000000..d9fde93 --- /dev/null +++ b/复试笔记/历年真题Python代码/19/19python.py @@ -0,0 +1,100 @@ +import math +import random + + +def read_file(): + # (1)编写函数read_file从文件中读取数据,将所有的整数按照其在文件中出现的顺序依次存储到数组arr中; + with open("data.txt", 'r') as fp: + arr = fp.read().split() + return list(map(int, arr)) + + +def arr_print(arr: list, n): + #(2)编写函数print将数组arr显示在屏幕上,每行显示n个数,每个整数占6列; + length = len(arr) + size = length // n+1 + for i in range(size): + for j in range(i * n, (i + 1) * n): + if j < length: + print('{:<6}'.format(arr[j]), end='') + print() + + +def count(arr): + #(3)编写函数count统计数字0至9在数组arr所有整数中的出现次数,将结果放入数组res中(即res[0]存储数字0的出现次数,res[1]存储数字1的出现次数,其余以此类推); + s = ''.join(list(map(str, arr))) + res = [s.count(str(i)) for i in range(10)] + return res + + +def print_res(res): + #(4)编写函数print_res将数组res显示在屏幕上,每行显示5个数,可以复用步骤(2)中print函数; + print_file(res, 5) + + +def sort_array(arr): + #(5)编写函数sort_array将数组arr中的整数按照因子和从小到大排序,如果两个整数的因子和相等,则按照它们的自然大小排序(注意:计算一个整数的因子和时包括1和其本身); + return sorted(arr) + + +def filter_array(arr): + # (6)编写函数filter_array对数组arr中的整数进行筛选,结果继续保存在arr中,筛选规则如下:保留所有的偶数, + # 同时保证这些偶数按照从小到大排序。说明:完成筛选之后,数组arr中的元素可以分成两部分,前半部分是有效内容, + # 即所有的偶数,后半部分则是无效内容,参数size记录了数组arr中有效内容的长度(注意:筛选要求在原数组上进行, + # 如使用新的辅助数组来完成筛选,扣10分); + arr.sort() + size = 0 + for i in range(0, len(arr)-1): + if arr[i] != 0 and arr[i] % 2 == 0: + num = arr[size] + arr[size] = arr[i] + arr[i] = num + size += 1 + return size + + +def filter_array2(arr): + #(6).2 + arr = list(filter(lambda x: x % 2 == 0, ar)) + arr.sort() + return len(arr), arr + + +def is_prime(n): + #判断数字n是否为质数 + edg = int(math.sqrt(n))+1 + for i in range(2, edg): + if n % i == 0: + return i + return False + + +def write_file(arr, size): + #(7)编写函数write_file对数组arr中的有效内容(即所有偶数)进行质因数分解,并将结果输出到屏幕和文本文件output.txt中。输出要求:每一个整数的质因数分解结果占一行,具体显示格式如下图所示: + print(arr) + with open("output.txt", 'w')as sq: + for i in range(0, size): + new = is_prime(arr[i]) + while new: + sq.write(str(new)+'*') + arr[i] = arr[i]/new + new = isprime(arr[i]) + sq.write(str(int(arr[i]))+'\n') + + +def main(): + #主函数 + with open("data.txt", 'w') as fp: + for i in range(0, 100): + fp.write(str(random.randint(0, 32768))+'\n') + arr = read_file() + print_file(arr, 10) + res = count(arr) + print_res(res) + sort_array(arr) + size = filter_array(arr) + write_file(arr, size) + + +if __name__ == '__main__': + main() diff --git a/复试笔记/历年真题Python代码/19/data.txt b/复试笔记/历年真题Python代码/19/data.txt new file mode 100644 index 0000000..8cfa413 --- /dev/null +++ b/复试笔记/历年真题Python代码/19/data.txt @@ -0,0 +1,100 @@ +20790 +13811 +30561 +5676 +6256 +5942 +31400 +8733 +7129 +10539 +4945 +26864 +16345 +12159 +17074 +31777 +22966 +15702 +17646 +16226 +1645 +31998 +11154 +20223 +359 +1412 +8741 +3220 +7235 +19472 +21964 +5317 +7815 +9155 +26420 +2447 +25652 +6733 +31569 +13263 +21399 +26156 +24418 +30657 +27601 +12484 +11871 +22770 +12959 +28095 +21083 +1025 +30678 +7901 +31006 +10071 +11925 +726 +24453 +22308 +32652 +21943 +1631 +23553 +5009 +28756 +2054 +8613 +8031 +28488 +19183 +30723 +3412 +32149 +1255 +9307 +8248 +15250 +14853 +22018 +21712 +22461 +856 +7467 +20153 +25982 +6638 +19291 +8786 +9991 +28312 +27926 +27888 +23143 +17391 +1414 +11132 +8355 +1686 +18566 diff --git a/复试笔记/历年真题Python代码/19/output.txt b/复试笔记/历年真题Python代码/19/output.txt new file mode 100644 index 0000000..25c3505 --- /dev/null +++ b/复试笔记/历年真题Python代码/19/output.txt @@ -0,0 +1,48 @@ +2*67 +2*5*23 +2*2*2*2*17 +2*7*47 +2*19*23 +2*881 +2*17*59 +2*2*2*3*127 +2*3*11*47 +2*2*2*2*2*2*7*7 +2*2*2*2*2*2*2*2*17 +2*3*877 +2*2917 +2*2*3*541 +2*3*1087 +2*2*5*5*71 +2*17*223 +2*2*5*19*23 +2*2*2*5*241 +2*2*2*7*173 +2*2*2459 +2*19*263 +2*2*2*2*2*5*5*13 +2*2*2*2*2*2*3*61 +2*3*2153 +2*2*2*7*239 +2*2*3*7*173 +2*2*31*127 +2*2*2*2*3*367 +2*2*2*2*3*5*79 +2*2*47*101 +2*7*11*127 +2*2*2*3*941 +2*5*2383 +2*5*2423 +2*2*2*2*2*2*3*3*43 +2*3*3*3*461 +2*2*2*29*109 +2*2*3*31*71 +2*11*1229 +2*83*173 +2*2*3*3*5*167 +2*2*17*443 +2*43*359 +2*2*7727 +2*2*13*599 +2*15773 +2*5*3217 diff --git a/复试笔记/历年真题Python代码/20/20.py b/复试笔记/历年真题Python代码/20/20.py new file mode 100644 index 0000000..1536307 --- /dev/null +++ b/复试笔记/历年真题Python代码/20/20.py @@ -0,0 +1,31 @@ +def judge_seq(res: list): + #判断是否有等差为1的数列 + new = sorted(set(res)) #生成没有重复且有顺序的new序列 + i = 0 + #print(new) + length = len(new) + while i < length: + for j in range(1, 5): + if i+j >= len(new) or new[i+j]-new[i+j-1] != 1: #如果5个以内不等差,则直接截断 + i = i+j + break + if j == 4: + return i, new + return -1, new + + +def main(): + res = list(map(int, (input('请输入一系列数字').split()))) + s, new = judge_seq(res) + #print(s, new) + if s == -1: + print("查找失败,列表里不含有等差为1的数列") + else: + print("存在等差数列,分别是:") + for i in range(5): + print(new[s+i]) + + +if __name__ == '__main__': + while True: + main() diff --git a/复试笔记/历年真题Python代码/pratice/1-4.py b/复试笔记/历年真题Python代码/pratice/1-4.py new file mode 100644 index 0000000..5d2f15b --- /dev/null +++ b/复试笔记/历年真题Python代码/pratice/1-4.py @@ -0,0 +1,21 @@ +def _1(): + a=int(input("请输入正整数a:")) + b=int(input("请输入正整数b:")) + print( '商:',divmod(a,b)[0], + '余数:',divmod(a,b)[1]) + +def _2(): + print(len(input("请输入一个中文词语:"))) + +def _3(): + m=int(input("请输入一个三位整数:")) + num=0 + while m: + m,n=divmod(m,10) + num+=n + print("%4d"%num) + +def _4(): + nums=(input("请输入两个坐标点的横纵坐标:")).split() + a,b,c,d=float(nums[0]),float(nums[1]),float(nums[2]),float(nums[3]) + print('两点的距离:',((a-c)**2+(b-d)**2)**0.5) diff --git a/复试笔记/历年真题Python代码/pratice/13-18列表.py b/复试笔记/历年真题Python代码/pratice/13-18列表.py new file mode 100644 index 0000000..8eae411 --- /dev/null +++ b/复试笔记/历年真题Python代码/pratice/13-18列表.py @@ -0,0 +1,99 @@ +import random +import numpy as np +def is_prime(n): + #判断n是否为素数 + if n<2: + return False + if n==2: + return True + top=int(n**0.5)+1 #确定判定边界 + for i in range(2,top): + if n%i==0: + return False + return True + +def func_13(): + #函数实现,先将500以内的质数存入列表,之后依次输出5个 + res=[] + for i in range(500): + if is_prime(i): + res.append(i) + j=0 + while j=len(res): + break + j+=5 + print('\n') + +def func_14(): + #对列表进行排序输出 + res=input('please input nums').split() + res=list(map(int,res)) + print(sorted(set(res))) + +def func_15(): + #判断两个字符串是否同构 + s1=sorted(list(input('please input str1:'))) + s2=sorted(list(input('please input str2:'))) + print('yes'if s1==s2 else 'no') + +def transpose(M): + # 直接使用zip解包成转置后的元组迭代器,再强转成list存入最终的list中 + return [list(row) for row in zip(*M)] +def func_16(): + #对数组进行随机赋值,并实现转置 + n=int(input("col:")) #n为矩阵维数 + mar=[] #mar空矩阵 + for i in range(n): + col=[] #一行一行赋值 + for j in range(n): + col.append(random.randint(1,10)) #对矩阵元素随机赋值 + mar.append(col) + print(mar) + print(np.array(mar).T) + print(transpose(mar)) + +def func_17(): + #对成绩根据总分从高到低排序,依次输出排序后的列表 + res=[['张飞',78,75], + ['李大刀',92,67], + ['李墨白',84,88], + ['王老虎',50,90], + ['雷小米',99,98]] + res.sort(key=lambda x:x[1]+x[2],reverse=True) #根据分数和进行逆排序,从高到低 + for i in range(len(res)): + print('%8s%8d'%(res[i][0],res[i][1]+res[i][2])) + +def func_18(): + # + n=int(input('num:')) + row, col = 0, n // 2 + magic = [] + for i in range(n): + magic.append([0] * n) + magic[row][col] = 1 + for i in range(2, n * n + 1): + r, l = (row - 1 + n) % n, (col + 1) % n #########不会 + if (magic[r][l] == 0): + row, col = r, l + else: + row = (row + 1) % n + magic[row][col] = i + marray = np.array(magic) + print(marray) + + +def main(): + #func_13() + #func_14() + #func_15() + func_16() + #func_17() + #func_18() + + pass +if __name__=='__main__': + main() + diff --git a/复试笔记/历年真题Python代码/pratice/19-25选择.py b/复试笔记/历年真题Python代码/pratice/19-25选择.py new file mode 100644 index 0000000..2afda4a --- /dev/null +++ b/复试笔记/历年真题Python代码/pratice/19-25选择.py @@ -0,0 +1,81 @@ +from sympy import * +def func_19(): + #对二次函数进行求解 + a,b,c=list(map(float,eval(input('a,b,c:')))) #依次输入a,b,c + if a==0: #如果a为0,则无意义 + print('该函数无意义') + else: #不为0时,求解方程 + x=Symbol('x') + d1=(a*x**2+b*x+c)-(0) + print(solve([d1])) +def func_20(): + #判断三个点围成图形的周长及面积,并且判断是否为三角形 + x1,x2,x3,y1,y2,y3=list(map(float,eval(input('x1,x2,x3,y1,y2,y3:'))))#输入3个点的6个坐标 + f=lambda a1,a2,b1,b2:((a1-a2)**2+(b1-b2)**2)**0.5 #求两点线段长函数f + l1=f(x1,x2,y1,y2) + l2=f(x1,x3,y1,y3) + l3=f(x2,x3,y2,y3) + t=(l1+l2+l3)/2 + if max(l1,l2,l3)==t: #判断最长边是否为周长的一半,如果是,则为直线 + print('该图形不是三角形,是直线') + else: + s=((t*(t-l1)*(t-l2)*(t-l3))**0.5) #根据公式求面积 + print('周长为:%f,面积为:%f'%(2*t,s)) +def func_21(): + #判断一个点与一个圆的关系 + x1,y1,r,x2,y2=list(map(float,eval(input('x1,y1,r,y1,y2:')))) + f=lambda a1,a2,b1,b2:((a1-a2)**2+(b1-b2)**2)**0.5 #求两点线段长函数f + l=f(x1,x2,y1,y2) #l为该点到圆圆心的距离 + if l==r: + print('在圆上') + elif l>r: + print('在圆外') + else: + print('在圆内') +def func_22(): + #对一串数字进行顺序逆序输出 + x=input('请输入一个不多于5位的正整数:') + rx=x[::-1] #将x逆置并存入rx中 + print('他是%d位数'%len(x)) + for i in x: #顺序输出 + print(i) + for i in rx: #逆序输出 + print(i) + +def func_23(): + #对三个整数根据从小到大输出 + res=list(map(int,eval(input('x,y,z;')))) + res.sort() + for i in res: + print(i) +def func_24(): + #根据不同利息率计算利息 + x=eval(input('money:(万元)')) + if x<10: + print('%.4f万元'%(x*(1+0.015))) + elif x>=10 and x<50: + print('%.4f万元'%(x*(1+0.02))) + elif x>=50 and x<100: + print('%.4f万元'%(x*(1+0.03))) + else: + print('%.4f万元'%(x*(1+0.035))) +def func_25(): + #对字母进行转换输出 + x=input('请输入一个字母:') #将字母存入x + if x<'z' and x>'a': #x为小写字母 + print(x.upper()) + elif x>'A' and x<'Z': #x为大写字母 + print(x.lower()) + else: #其他情况 + print(x) +def main(): + #func_19() + #func_20() + #func_21() + #func_22() + #func_23() + #func_24() + func_25() + pass +if __name__=='__main__': + main() diff --git a/复试笔记/历年真题Python代码/pratice/26-32循环.py b/复试笔记/历年真题Python代码/pratice/26-32循环.py new file mode 100644 index 0000000..0cf73ba --- /dev/null +++ b/复试笔记/历年真题Python代码/pratice/26-32循环.py @@ -0,0 +1,79 @@ +def func_26(): + #输出指定数目用*构成的等腰三角形 + n=int(input('please input a number:')) + for i in range(n): + print('{1:^{0}}'.format(n*2-1,((2*i)+1)*'*')) #根据位置依次输出指定数目的*,并居中输出 +def func_27(): + #输出乘法口诀表 + n=int(input('please input a number:')) #确定维度 + for i in range(1,n+1): + for j in range(1,1+i): + print(i*j,end='\t') + print('\n') + +def func_28(): + #输出指定边长的以*号构成的正六边形 + n=int(input('please input a number:')) #未作出 + for i in range(1,n*2): + for j in range(i): + print('*',end='\t') + print('\n') +def func_29(): + #求几个数的和 + n=int(input('Please input the number of numbers:')) #确定维度 + while n!=0: #当n不为0时继续 + nums=0 #和重置为0 + for i in range(n): + nums+=int(input('Please input number%d:'%(i+1))) #依次输入每一个数 + print('sum=',nums) + n=int(input('Please input the number of numbers:')) #继续输入数字个数 +def is_prime(n): + #判断n是否为素数 + if n<2: #小于2无质数 + return False + if n==2: #等于2就是质数 + return True + top=int(n**0.5)+1 + for i in range(2,top): #判断在2到平方根内有无其他因数,有则返回失败 + if n%i==0: + return False + return True +def func_30(): + #输入指定数字内的所有质数 + n=int(input('Please input the number of numbers:')) + for i in range(1,n): + if is_prime(i): + print(i,end=' ') +def func_31(): + #求S=a+aa+aa...a + a=input('a=') + n=int(input('n=')) + s=0 + for i in range(1,1+n): + s+=int(a*i) #先将字符个数累加,然后转化为整数加到总和里去 + print(s) +def func_32(): + #对给决定框架矩阵赋值,并且计算矩阵相加 + n=int(input('Please input the number of rows:')) + m=int(input('Please input the number of columns:')) + import numpy as np + A=np.zeros((n,m)) #生成n行m列A矩阵 + B=np.zeros((n,m)) #生成n行m列B矩阵 + for i in range(n): + for j in range(m): + A[i][j]=int(input('Please input A[{},{}]:'.format(i,j))) #对A矩阵赋值 + for i in range(n): + for j in range(m): + B[i][j]=int(input('Please input B[{},{}]:'.format(i,j))) #对B矩阵赋值 + print('c=',A+B) #矩阵相加为C +def main(): + #func_26() + #func_27() + #func_28() + #func_29() + #func_30() + #func_31() + func_32() + pass +if __name__=='__main__': + main() diff --git a/复试笔记/历年真题Python代码/pratice/33-40函数.py b/复试笔记/历年真题Python代码/pratice/33-40函数.py new file mode 100644 index 0000000..03467e8 --- /dev/null +++ b/复试笔记/历年真题Python代码/pratice/33-40函数.py @@ -0,0 +1,123 @@ +def func_33(): + #求一个整数的所有因子之和 + n=int(input('input a number:')) #输入整数 + ls=set() #创建一个空集合 + for i in range(1,n): + if n%i==0: #将可以除尽的因子添加到集合中 + ls.add(i) + print(sum(ls)) +def func_34(): + #将数字逆置 + n=int(input('input a number:')) #输入整数 + print('the reverse is:{}'.format(int(str(n)[::-1]))) #将数字转化为字符串逆置后再转化为数字 +def is_prime(n): + #判断n是否为素数 + if n<2: + return False + if n==2: + return True + top=int(n**0.5)+1 #判断的上界 + for i in range(2,top): + if n%i==0: #如果能被任意一位小的数整除,则不为素数 + return False + return True +def is_pal(n): + #判断n是否为回文数 + if int(str(n)[::-1])==n: + return True + else: + return False +def func_35(): + #依次输出8个数,总共输出30个数 + coun=0 #coun用来计数 + num=0 #num代表遍历的每一个数 + res=[] #res用来存储条件符合的数字 + while coun<30: + if is_prime(num) and not is_pal(num): #找到适合条件的反素数 + res.append(num) + coun+=1 + num+=1 + for i in range(coun//8+1): #按条件输出 + for j in range(8): + if i*8+j='A' and i<='Z': + ms+=str(chr(ord('A')+(ord(i)-ord('A')+n)%26)) + elif i>='a' and i<='z': + ms+=str(chr(ord('a')+(ord(i)-ord('a')+n)%26)) + else: + ms+=i + print('加密前的字符串:{}\n加密后的字符串:{}'.format(s,ms)) #####开始未作出 +def func_38(): + #将给定的英文语句单词倒序 + s=input('input a string:') #输入待倒序语句 + res=s.split() #依据空格分隔成列表 + rs=' ' + print(rs.join(res[::-1])) #将倒序列表用空格链接 +def func_39(): + #统计指定位置字符在字符串中出现的次数 + s=(input('input a string:')).lower() #输入语句并转化为全小写 + n=int(input('input the index:')) #输入待统计位置 + print(s.count(s[n])) #利用count函数统计 +def Fibonacci(res,n): + #做出斐波那契数列 + if len(res)<2: #初始化前两位,分别为1,1 + res.append(1) + res.append(1) + if len(res)