摘要: #include <cstdio> #include <iostream> using namespace std; const int N = 50; int pre[N], in[N], post[N]; int n; struct node { int data; node* lchild; 阅读全文
posted @ 2019-04-27 23:56 康钦铭 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 头插法代码:‘ void CreateListF(LinkList &L,int n){ L = new LNode;//创建头结点 L->next = NULL;//初始为空链表 for(int i=0;i<n;i++) { LNode* p = new LNode;//创建新节点 cin>>p- 阅读全文
posted @ 2019-03-25 20:16 康钦铭 阅读(312) 评论(0) 推荐(0) 编辑