2017年2月9日
摘要: 1 typedef struct TreeNode *BinTree; 2 typedef BinTree Position; 3 struct TreeNode{ 4 ElementType Data; 5 BinTree Left; 6 BinTree Right; 7 }; 8 BinTree BT; 9 void LevelOrder... 阅读全文
posted @ 2017-02-09 20:43 chy89224 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 typedef struct TreeNode *BinTree; 2 typedef BinTree Position; 3 struct TreeNode{ 4 ElementType Data; 5 BinTree Left; 6 BinTree Right; 7 }; 8 BinTree BT; 9 void InOrderTr... 阅读全文
posted @ 2017-02-09 20:39 chy89224 阅读(323) 评论(0) 推荐(0) 编辑
  2017年2月8日
摘要: 1 阅读全文
posted @ 2017-02-08 22:19 chy89224 阅读(75) 评论(0) 推荐(0) 编辑
  2017年2月5日
摘要: typedef struct TreeNode *BinTree; typedef BinTree Position; struct TreeNode{ ElementType Data; BinTree Left; BinTree Right; }; BinTree BT; //二叉树的遍历 void PreOrderTraversal(BinTree BT)//(1)先序遍历 ... 阅读全文
posted @ 2017-02-05 04:03 chy89224 阅读(185) 评论(0) 推荐(0) 编辑
摘要: typedef struct TreeNode *BinTree; typedefBinTree Position; struct TreeNode{ ElementType Data; BinTree Left; BinTree Right; }; BinTree BT; 阅读全文
posted @ 2017-02-05 04:01 chy89224 阅读(106) 评论(0) 推荐(0) 编辑
  2017年2月4日
摘要: 阅读全文
posted @ 2017-02-04 04:16 chy89224 阅读(99) 评论(0) 推荐(0) 编辑
摘要: typedef struct LNode *List; struct LNode{ ElementType Element[MAXSIZE]; int Length; }; 方法1:顺序查找算法 int SequentialSearch(List Tb1,ElementType K)//(有"哨兵" 阅读全文
posted @ 2017-02-04 04:08 chy89224 阅读(166) 评论(0) 推荐(0) 编辑
  2017年1月29日
摘要: typedef struct PolyNode *Polynomial; struct PolyNode{ int coef;//系数 int expon;//指数 Polynomial link;/*指向下一个结点的指针*/ }; Polynomial P,Rear,t1,t2,t;//这句一定要写 int main() { Polynomial P1,P2,PP,PS; ... 阅读全文
posted @ 2017-01-29 01:56 chy89224 阅读(389) 评论(0) 推荐(0) 编辑
  2017年1月18日
摘要: struct PolyNode{ int coef;//系数 int expon;//指数 struct PolyNode *link;//指向下一个结点的指针 }; typedef struct PolyNode *Polynomial; Polynomial P1,P2; Polynomial 阅读全文
posted @ 2017-01-18 19:25 chy89224 阅读(2147) 评论(0) 推荐(0) 编辑
摘要: struct Node{ ElementType Data; struct Node *Next; }; struct QNode{//链队列结构 struct Node *rear; //指向队尾结点 struct Node *front;//指向队头结点 }; typedef struct QN 阅读全文
posted @ 2017-01-18 16:25 chy89224 阅读(197) 评论(0) 推荐(0) 编辑