void fun(Node *head,int *len){if(head==null)return ;Node *p=head;while(p!=null){p=p->next;//输出节点中的数据printf("....",...);//节点数加1*len++;}}用len来保存节点的个数