From c6bc541ab58363d783e60a007e80e9bf9e231fda Mon Sep 17 00:00:00 2001 From: garhve Date: Mon, 5 Dec 2022 19:43:39 +0800 Subject: initialize --- .../blist/bhlist.h" | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 "c/dataStructure/\347\272\277\346\200\247\350\241\250/\347\272\277\346\200\247\351\223\276\350\241\250/blist/bhlist.h" (limited to 'c/dataStructure/线性表/线性链表/blist/bhlist.h') diff --git "a/c/dataStructure/\347\272\277\346\200\247\350\241\250/\347\272\277\346\200\247\351\223\276\350\241\250/blist/bhlist.h" "b/c/dataStructure/\347\272\277\346\200\247\350\241\250/\347\272\277\346\200\247\351\223\276\350\241\250/blist/bhlist.h" new file mode 100755 index 0000000..659750a --- /dev/null +++ "b/c/dataStructure/\347\272\277\346\200\247\350\241\250/\347\272\277\346\200\247\351\223\276\350\241\250/blist/bhlist.h" @@ -0,0 +1,23 @@ +#ifndef _BHLIST_H +#define _BHLIST_H + +#include +#include +#include + +typedef struct bnode { + int data; + struct bnode * prior; + struct bnode * next; +} BNode; + +typedef BNode * Blist; + +void InitList (Blist * L); +bool AddElem (Blist * L, int e); +bool InsertElem (Blist * L, int e, int i); +bool DeleteElem (Blist * L, int e, int i); +void DestroyList (Blist * L); +void TraverseList (Blist * L); + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2