2 求当前数据元素个数 ListLength(head) int ListLength(SLNode *head) { SLNode *p = head; int size = 0; while(p->next != NULL) { p = p->next; size ++; } return size; } h e a d . . . 0 a 1 a 1 ? n a s i z e = 0 (