线性表的应用,一元多项式的表示

挖坑,待填系列

用C语言实现,总是不断纠结于错误处理,动态内存分配,输入输出等和数据结构不相干的内容,有点烦。

结构声明

#include <stdio.h>
#include <stdlib.h>

#define OK 1
#define ERROR 0
#define TRUE 1
#define FALSE 0

typedef int Status;

typedef struct {
    float coef; /* 系数 */
    int expn   /* 指数 */
}term, ElemType; /* 两个类型名:term用于本ADT,*/

猜你喜欢

转载自www.cnblogs.com/wjundong/p/11622516.html