diff options
author | garhve <git@garhve.com> | 2022-12-05 19:43:39 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2022-12-05 19:43:39 +0800 |
commit | c6bc541ab58363d783e60a007e80e9bf9e231fda (patch) | |
tree | a59c7ed0d05225c5876f3e5e919d4f6ed0c447ff /c/dataStructure/线性表/线性链表/blist/bhlist.h |
initialize
Diffstat (limited to 'c/dataStructure/线性表/线性链表/blist/bhlist.h')
-rwxr-xr-x | c/dataStructure/线性表/线性链表/blist/bhlist.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/c/dataStructure/线性表/线性链表/blist/bhlist.h b/c/dataStructure/线性表/线性链表/blist/bhlist.h new file mode 100755 index 0000000..659750a --- /dev/null +++ b/c/dataStructure/线性表/线性链表/blist/bhlist.h @@ -0,0 +1,23 @@ +#ifndef _BHLIST_H +#define _BHLIST_H + +#include<stdio.h> +#include<stdbool.h> +#include<stdlib.h> + +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 |