From 48c53fbc01776a2affc35484860b5c1b7fd11212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=83=A8?= Date: Tue, 14 Dec 2021 17:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E8=A1=A8code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据结构/线性表/顺序表代码/顺序表代码.sln | 28 +++++ .../线性表/顺序表代码/顺序表代码/test.cpp | 29 +++++ .../顺序表代码/顺序表代码/顺序表代码.vcxproj | 118 ++++++++++++++++++ .../顺序表代码/顺序表代码/顺序表代码.vcxproj.filters | 22 ++++ 4 files changed, 197 insertions(+) create mode 100644 数据结构/线性表/顺序表代码/顺序表代码.sln create mode 100644 数据结构/线性表/顺序表代码/顺序表代码/test.cpp create mode 100644 数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj create mode 100644 数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj.filters diff --git a/数据结构/线性表/顺序表代码/顺序表代码.sln b/数据结构/线性表/顺序表代码/顺序表代码.sln new file mode 100644 index 0000000..00b4f73 --- /dev/null +++ b/数据结构/线性表/顺序表代码/顺序表代码.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "顺序表代码", "顺序表代码\顺序表代码.vcxproj", "{0674BA49-A695-4005-AECD-DF8E82A0CEBE}" +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 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Debug|x64.ActiveCfg = Debug|x64 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Debug|x64.Build.0 = Debug|x64 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Debug|x86.ActiveCfg = Debug|Win32 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Debug|x86.Build.0 = Debug|Win32 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Release|x64.ActiveCfg = Release|x64 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Release|x64.Build.0 = Release|x64 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Release|x86.ActiveCfg = Release|Win32 + {0674BA49-A695-4005-AECD-DF8E82A0CEBE}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/数据结构/线性表/顺序表代码/顺序表代码/test.cpp b/数据结构/线性表/顺序表代码/顺序表代码/test.cpp new file mode 100644 index 0000000..818f4ed --- /dev/null +++ b/数据结构/线性表/顺序表代码/顺序表代码/test.cpp @@ -0,0 +1,29 @@ +using namespace std; +#include +#define MaxSize 100 + +/* + * ¾²̬·ÖÅä + */ +typedef struct { + int data[MaxSize]; + int length; +}SqList; +void initList(SqList &sq) { + for (int i = 0; i < sq.length; i++) + sq.data[i] = 0; + sq.length = 0; +} +void printSq(SqList sq) { + for (int i = 0; i < sq.length; i++) + printf("%d:%d\n", i, sq.data[i]); +} + +int main() { + SqList sq; + initList(sq); + printSq(sq); + + system("pause"); + return 0; +} \ No newline at end of file diff --git a/数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj b/数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj new file mode 100644 index 0000000..d960c3a --- /dev/null +++ b/数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj @@ -0,0 +1,118 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + {0674BA49-A695-4005-AECD-DF8E82A0CEBE} + 顺序表代码 + 8.1 + + + + Application + true + v140 + Unicode + + + Application + false + v140 + true + Unicode + + + Application + true + v140 + Unicode + + + Application + false + v140 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + Level3 + Disabled + true + + + + + Level3 + Disabled + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + + + + + \ No newline at end of file diff --git a/数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj.filters b/数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj.filters new file mode 100644 index 0000000..0e31acb --- /dev/null +++ b/数据结构/线性表/顺序表代码/顺序表代码/顺序表代码.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;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