#include<stdio.h>
#include<stdlib.h>
#include<math.h>
typedef struct
{
float coef;
int expn;
}Term;
typedef struct LNode
{
Term data;
LNode *next;
}LNode,*LinkList;
void initList(LinkList &L)
{
L=(LNode*)malloc(sizeof(LNode));
L->data.coef=0.0;
L->data.expn=-1;
L->next=NULL;
}
int compare(Term a,Term b)
{
if(a.expn>b.expn)
return -1;