2012年4月15日

Polynomial 一元多项式的表示及相加 (线性链表实现 严蔚敏版)

摘要: 1、贴代码:#include <iostream> #include <cstdio> using namespace std; struct Node { double coef; int expn; Node *next; }; void CreatPolynomial(Node *&head, int n) // 生成带表头结点的单链表,除头结点外另生成n个结点 { head = (Node *)malloc(sizeof(Node)); head->coef = 0; head->expn = 0; head->next = NULL; 阅读全文

posted @ 2012-04-15 22:58 jjtx 阅读(728) 评论(1) 推荐(0) 编辑

导航