void PrintList(LinkList &L)
{
LinkList p = L->next;
while(p)
{
cout<<p->data<<" ";
p = p->next;
}
}
10-14
1844
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-22
922
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
void PrintList(LinkList &L)
{
LinkList p = L->next;
while(p)
{
cout<<p->data<<" ";
p = p->next;
}
}