基于c++的链表课程设计 链表课程设计部分代码void sort(fanfans *head) { fanfans *p, *q; int k; for(p = head->next; p != NULL; p = p->next) for(q = p->next; q != NULL; q = q->