From 40e8f3028862dfa6d4aa32d0ab5e375e9d1646df Mon Sep 17 00:00:00 2001 From: LSM <1185424014@qq.com> Date: Wed, 28 Oct 2020 09:41:04 +0800 Subject: [PATCH 1/4] dss --- dss.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dss.txt diff --git a/dss.txt b/dss.txt new file mode 100644 index 0000000..6b76856 --- /dev/null +++ b/dss.txt @@ -0,0 +1 @@ +ds \ No newline at end of file -- Gitee From 93ba25ff748d266d66312e497a2b333555c31073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E4=B8=96=E6=95=8F?= <8179718+lai-shimin@user.noreply.gitee.com> Date: Tue, 3 Nov 2020 19:36:00 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20dss.?= =?UTF-8?q?txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dss.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 dss.txt diff --git a/dss.txt b/dss.txt deleted file mode 100644 index 6b76856..0000000 --- a/dss.txt +++ /dev/null @@ -1 +0,0 @@ -ds \ No newline at end of file -- Gitee From fb5ca7416dbcfc33fe7cbedff9f8c56107de8c3b Mon Sep 17 00:00:00 2001 From: LSM <1185424014@qq.com> Date: Tue, 3 Nov 2020 19:55:21 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=8F=8C=E5=90=91=E9=93=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DoubleLink.txt | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 DoubleLink.txt diff --git a/DoubleLink.txt b/DoubleLink.txt new file mode 100644 index 0000000..f390c8a --- /dev/null +++ b/DoubleLink.txt @@ -0,0 +1,60 @@ +include"DList.h" +#include +#include +Position MakeNode(Item i) +{ + PNode p = NULL; + p = (PNode)malloc(sizeof(Node)); + if(p!=NULL) + { + p->data = i; + p->previous = NULL; + p->next = NULL; + } + return p; + +void FreeNode(PNode p) +{ + free(p); +} +DList * InitList() +{ + DList *plist = (DList *)malloc(sizeof(DList)); + PNode head = MakeNode(0); + if(plist!=NULL) + { + if(head!=NULL) + { + plist->head = head; + plist->tail = head; + plist->size = 0; + } + else + return NULL; + } + return plist; +} +void ClearList(DList *plist) +{ + PNode temp,p; + p = GetTail(plist); + while(!IsEmpty(plist)) + { + temp = GetPrevious(p); + FreeNode(p); + p = temp; + plist->tail = temp; + plist->size--; + } +} + +Position GetHead(DList *plist) +{ + return plist->head; +} + +Position GetTail(DList *plist) +{ + return plist->tail; +} + -- Gitee From 2d4a589ea93d72c6795948e0a55c90a8676ed626 Mon Sep 17 00:00:00 2001 From: LSM <1185424014@qq.com> Date: Mon, 16 Nov 2020 17:33:10 +0800 Subject: [PATCH 4/4] khdak --- ...\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" diff --git "a/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" new file mode 100644 index 0000000..bfd6879 --- /dev/null +++ "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" @@ -0,0 +1 @@ +fsfsf -- Gitee