摘要:
不带头结点: typedef struct LNode { int data; struct LNode *next; }LNode,*LinkList; //初始化一个空的单链表 bool InitList(LinkList &L) { L = NULL; return true; } void 阅读全文
posted @ 2020-06-14 19:52
swefii
阅读(196)
评论(0)
推荐(0)
摘要:
插入与删除: #include <stdio.h> #define MaxSize 10 typedef struct { int data[MaxSize]; int length; }SqList; bool ListInsert(SqList &L, int i, int e) { if (i 阅读全文
posted @ 2020-06-14 09:22
swefii
阅读(279)
评论(0)
推荐(1)

浙公网安备 33010602011771号