#include #include #include using namespace std; #define MAXSIZE 100 #define OK 1 #define OVERFLOW -1 #define ERROR -2 #define False 0 typedef int status; typedef int ElemType; typedef struct { int coef; int exp; }polynomial; typedef struct { polynomial *elem; int length; int listsize; }Sqlist; status Initlist_Sq(Sqlist &L) { L.elem=new polynomial[MAXSIZE]; if(!L.elem) exit(OVERFLOW); L.length=0; return OK; }
数据结构-多项式的求和(相减)顺序表实现最先出现在Python成神之路。
共有 0 条评论