list chongfu(list &a, list &b)
{
londe * s;
londe *c;
c = new londe;
c->next = NULL;
a = a->next;
b = b->next;
while (a != NULL)
{
while (b != NULL)
{
if (a->data == b->data)
{
s = new londe;
s->data = a->data;
s->next = c->next;
c->next = s;
}
b = b->next;
}
a = a->next;
}
return c;