摘要: /*多项式加法运算使用链表实现*/#include using namespace std;//使用不带头结点的单向链表,按照指数递减的顺序排列typedef struct PolyNode{ int coef; //系数 int expon; //指数 PolyNod... 阅读全文
posted @ 2015-02-05 18:13 糙哥 阅读(3898) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;#define MAXSIZE 100/*链表的数组实现*/typedef struct{ int listData[MAXSIZE]; int last;}List, *pList;pList CreateEmptyList()... 阅读全文
posted @ 2015-02-05 15:27 糙哥 阅读(668) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;/***********************************//*栈的链式存储结构实际上是一个单链表,叫链栈插入和删除操作只能在链栈的栈顶进行*//***********************************/#defi... 阅读全文
posted @ 2015-02-05 15:26 糙哥 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;/***********************************//*栈的链式存储结构实际上是一个单链表,叫链栈插入和删除操作只能在链栈的栈顶进行*//***********************************/#defi... 阅读全文
posted @ 2015-02-05 15:26 糙哥 阅读(4746) 评论(0) 推荐(0) 编辑