一元多项式相加』.docVIP

  • 3
  • 0
  • 约 5页
  • 2016-12-25 发布于河南
  • 举报
#include stdio.h#include malloc.h#include stdlib.h#define NULL 0typedef struct NODE { float coef; //系数 int expn; //指数 struct NODE *next; }NODE;NODE *Creat(int n);void print(NODE *head);NODE *AddPolyn(NODE *head1, NODE *head2);NODE *Delfirst(NODE *head, NODE *q);void InsertBefore(NODE *p1, NODE *p2);int compare(int a, int b);main(){ NODE *head1, *head2, *head3; int n1, n2; printf(请输入你需要的多项数的数目 n1 : ); scanf(%d, n1); head1 = Creat(n1); printf(第一个多项式的显示 : \n); print(head1); printf(\n请输入你需要的多项数的数目 n2 : ); scanf(%d, n2); head2 = Creat(n2); printf(\n第二

文档评论(0)

1亿VIP精品文档

相关文档