Skip to content

Commit

Permalink
Update LinkList_with_head.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
huihut committed Mar 28, 2019
1 parent 0465052 commit 7f5fe39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DataStructure/LinkList_with_head.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ Status EnQueue_LQ(LinkList &L, ElemType &e) {
if (NULL == L) return OVERFLOW;
L -> next = q;
}
else if (NULL == L->next) L = q;
else if (NULL == L->next)
{
L -> next = q;
}
else
{
p = L;
Expand Down Expand Up @@ -106,6 +109,7 @@ Status DeQueue_LQ(LinkList &L, ElemType &e) {
//遍历调用
Status visit(ElemType e) {
printf("%d\t", e);
return OK;
}

//遍历单链表
Expand Down

0 comments on commit 7f5fe39

Please sign in to comment.