2016年9月26日

杭电1710 (已知二叉树前中序 求后序)

摘要: #include "iostream" #include "stack" using namespace std; int result[1001]; int cnt; /* 得到后序序列 */ void getPost(int* pre,int* in,int len) { /* 分别记录当前处理二叉树的前序 后序 和 长度*/ if (len == 0) /* 前序序列长度为0 直接返... 阅读全文

posted @ 2016-09-26 23:48 于无声出听惊雷 阅读(199) 评论(0) 推荐(0) 编辑

2016年9月25日

STL之List

摘要: List的基本操作:http://www.cnblogs.com/scandy-yuan/archive/2013/01/08/2851324.html(转载) 其本质为双端链表。 1. List中earse函数的使用问题: 正确使用如下: 错误使用如下: 错误原因分析: 当list中执行一次era 阅读全文

posted @ 2016-09-25 20:10 于无声出听惊雷 阅读(196) 评论(0) 推荐(0) 编辑

导航