摘要:
智商抓鸡,链表看得我纠结了一天,继续note只换名不换内容问题 1 struct student *sort(struct student *head) 2 { 3 struct student *p1,*p2,*temp; 4 p1=head; 5 p2=head->next; 6 printf("before change:p1:%ld,%d;p2:%ld,%d\n",p1->num,p1->score,p2->num,p2->score); 7 temp=p2; 8 p2=p1; 9 p1=temp;10 printf("a.. 阅读全文