自己做的!心血!!!
#include <iostream>
using namespace std;
#define TURE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
typedef int status;
typedef struct term
{
float coef;
int expn;
term *next;
}term,*Link;
typedef struct
{
Link head;
int len;
}polyn;
status MakeTerm(Link &p, float c, int e, Link q)//建立项
{
p=(Link)malloc(sizeof(term));
if(!p) exit(OVERFLOW);
p->coef=c;
p->expn=e;
p->next=q;
return OK;
}