| 41 | return p; |
| 42 | } |
| 43 | void display(Node* p) { |
| 44 | Node* temp = p;//将temp指针重新指向头结点 |
| 45 | while (temp->next) { |
| 46 | temp = temp->next; |
| 47 | printf("%d ", temp->Element); |
| 48 | } |
| 49 | printf("\n"); |
| 50 | } |
| 51 | int selectElem(Node* p, int M) { |
| 52 | Node* temp; |
| 53 | for (; p->next; p = p->next) { |