#include<iostream> using namespace std; void Merge(LinkList *ha,LinkList *hb,LinkList *&hc) { LinkList *p=ha->next; hc=ha; while(p->next!=ha) p=p->next; p->next=hb->next; while(p->next!=hb) p=p->next; p->next=hc; free(hb); }
#include<iostream> using namespace std; void Merge(LinkList *ha,LinkList *hb,LinkList *&hc) { LinkList *p=ha->next; hc=ha; while(p->next!=ha) p=p->next; p->next=hb->next; while(p->next!=hb) p=p->next; p->next=hc; free(hb); }