单链表的应用:多项式及其运算(代码来自课本)
#ifndef POLYNOMAL_H
#define POLYNOMAL_H
#include
using namespace std;
//多项式结点的定义
struct Term {
float coef;//系数
int exp;//指数
Term* link;//链指针
Term(float c, int e, Term* next = NULL)//初始化
{
coef = c;
ex...
翻译
2019-03-28 10:46:25 ·
343 阅读 ·
0 评论