int getLinkTotalcodeNum(struct Test *head)
{
int cnt = 0;//定义一个累加数
while(head != NULL)
{
cnt++;
head = head->next;//依次遍历
}
return cnt;//返回一个整形
}
int getLinkTotalcodeNum(struct Test *head)
{
int cnt = 0;//定义一个累加数
while(head != NULL)
{
cnt++;
head = head->next;//依次遍历
}
return cnt;//返回一个整形
}