- 博客(6)
- 资源 (3)
- 收藏
- 关注
转载 STL容器分析
在STL中基本容器有: string、vector、list、deque、set、map set 和map都是无序的保存元素,只能通过它提供的接口对里面的元素进行访问 set:集合, 用来判断某一个元素是不是在一个组里面,使用的比较少 map:映射,相当于字典,把一个值映射成另一个值,如果想创建字典的话使用它好了 底层采用的是树型结构,多数使用平衡二叉树实现,查找某一值是常
2013-09-16 14:07:08 295
原创 剑指offer-day.3
6.重建二叉树 给定preorder和inorder,代码实现重建二叉树 代码: ///////////////////////////q-6重建二叉树 void RebuildBinTree(){ int preorder[8]={1,2,4,7,3,5,6,8}; int inorder[8]={4,7,2,1,5,3,8,6}; BinTree tree; tree=Const
2013-08-19 22:09:14 386
原创 剑指offer-Day.2
3.二维数组的查找 二维数组matrix的每一行和每一列都是递增排序的,查找x是否在matrix中,存在则返回true,否则返回false。 例如: 1 2 4 9 2 5 7 10 3 6 8 12 9 11 13 15 查询8,返回true。 分析: 程序要求输入:matrix(一个指针),行数,列数,x 查找过程:每次和行/列最小值比较,则可以排除一行或一
2013-08-16 10:52:35 273
原创 剑指offer-Day.1
1.赋值运算符函数 class CMystring{ public: CMystring(char* pData=NULL); CMystring(const CMystring& str); private: char* m_pData; } 添加赋值运算符函数 代码1: CMystring& CMystring::operator = (const CMystring&
2013-08-15 22:24:02 383
原创 英文自我介绍-爱立信
good afternoon, my name is leon,i'm very honored to have this opportunity for an interview. as a student majored in communication,i have long desired to work in ericsson, this internship is very
2013-05-06 21:12:09 2684
原创 NS-3技巧
1.gdb调试 export LD_LIBRARAY_PATH=$LD_LIBRARY_PATH:"path-to-ns3/build" 这里的path-to-ns3是NS3的安装目录() 2.LTE模块分析 相关文件: lte-spectrum-phy.cc pf-ff-mac-scheduler.cc lte-pdcp.cc lte-rlc-um.cc 物理子帧--P
2013-04-18 18:33:10 444
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人