diff options
Diffstat (limited to 'c/dataStructure/线性表/线性链表/blist/main.c')
-rwxr-xr-x | c/dataStructure/线性表/线性链表/blist/main.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/c/dataStructure/线性表/线性链表/blist/main.c b/c/dataStructure/线性表/线性链表/blist/main.c new file mode 100755 index 0000000..09b4247 --- /dev/null +++ b/c/dataStructure/线性表/线性链表/blist/main.c @@ -0,0 +1,24 @@ +// Driver +#include "bhlist.h" + +int main(void) +{ + Blist number; + + int num; + + InitList(&number); + + printf("Please enter number(q to quit): "); + while (scanf("%d", &num) == 1) + AddElem(&number,num); + + printf("Add element done! Now shows them!\n"); + printf("%d\n",number->data); + + TraverseList(&number); + + DestroyList(&number); + + return 0; +}
\ No newline at end of file |