单链表的实现——求线性表的长度
template
int LinkList::LinkList()
{
p=first->next; count=0;
while(p!=NULL)
{
count++;
p=p->next;
}
return count;
}
第一次作业笔记

单链表的实现——求线性表的长度
template
int LinkList::LinkList()
{
p=first->next; count=0;
while(p!=NULL)
{
count++;
p=p->next;
}
return count;
}