登 录
单链表测长
int length(node *head) { int n=0; node *p; p=head; while(p!=NULL) { p=p->next; n++; } return(n); }
抱歉!评论已关闭.