#include<stdio.h>#include<stdlib.h>typedefstruct node *List;struct node{
int exp;//指数 int coef;//系数
List next;};
List create(){
// 有头结点的链表的创立 要熟记 int N;int i=0;scanf("%d",&N);
List L=(List)malloc(sizeof(struct node));//生成头结点
List p=L;for(i=0;i<N;i++){
//先“挖坑”再“种萝卜”
p->next=(List)malloc(sizeof(struct node));
p=p->next;scanf("%d %d",&p->coef,&p->exp);}