int length_list(PNODE pHead)
{
int len = 0;//需要初始化,不然会显示乱码
PNODE p = pHead->pNext;
while (NULL != p)
{
len++;
p = p->pNext;
}
return len;
}
int length_list(PNODE pHead)
{
int len = 0;//需要初始化,不然会显示乱码
PNODE p = pHead->pNext;
while (NULL != p)
{
len++;
p = p->pNext;
}
return len;
}