- 博客(6)
- 资源 (3)
- 收藏
- 关注
转载 STL容器分析
在STL中基本容器有: string、vector、list、deque、set、mapset 和map都是无序的保存元素,只能通过它提供的接口对里面的元素进行访问set:集合, 用来判断某一个元素是不是在一个组里面,使用的比较少map:映射,相当于字典,把一个值映射成另一个值,如果想创建字典的话使用它好了底层采用的是树型结构,多数使用平衡二叉树实现,查找某一值是常
2013-09-16 14:07:08
294
原创 剑指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
385
原创 剑指offer-Day.2
3.二维数组的查找二维数组matrix的每一行和每一列都是递增排序的,查找x是否在matrix中,存在则返回true,否则返回false。例如:1 2 4 92 5 7 103 6 8 129 11 13 15查询8,返回true。分析:程序要求输入:matrix(一个指针),行数,列数,x查找过程:每次和行/列最小值比较,则可以排除一行或一
2013-08-16 10:52:35
272
原创 剑指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
382
原创 英文自我介绍-爱立信
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
2683
原创 NS-3技巧
1.gdb调试export LD_LIBRARAY_PATH=$LD_LIBRARY_PATH:"path-to-ns3/build" 这里的path-to-ns3是NS3的安装目录()2.LTE模块分析相关文件:lte-spectrum-phy.ccpf-ff-mac-scheduler.cclte-pdcp.cclte-rlc-um.cc物理子帧--P
2013-04-18 18:33:10
440
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人