= p->coef;
p->coef = q ->coef;
q->coef =tmpf;
}
}
}
node * merge(node *a,node *b,node *c,...float flag)
{
node *p,*q,*l,*lq;
p=a; q=b; //coef系数
c=new node;
l=c;
while(p!...>exp;
l->next = new node;
lq = l; l = l->next;
q=q->next;
}
lq->next = NULL;
return c;...}
int main()
{
node *a,*b,*c;
cout<<"please input in accordance with the format: (***) \n";
cout...= merge(a,b,c,plus);
cout<<"plus: ";Print(c);
c = merge(a,b,c,mins);
cout<<"mins: ";Print(c);
}