- 博客(3)
- 资源 (2)
- 收藏
- 关注
转载 C++ STL之vector用法总结
介绍vector是表示可变大小数组的序列容器。就像数组一样,vector也采用的连续存储空间来存储元素。也就是意味着可以采用下标对vector的元素进行访问,和数组一样高效。但是又不像数组,它的大小是可以动态改变的,而且它的大小会被容器自动处理。本质讲,vector使用动态分配数组来存储它的元素。当新元素插入时候,这个数组需要被重新分配大小为了增加存储空间。其做法是,分配一个新的数组,然后
2017-05-25 21:10:57 309
转载 教你从头到尾彻底理解KMP算法
作者: July 、 saturnma 时间; 二零一一年一月一日-----------------------本文参考:数据结构(C语言版) 李云清等编著、算法导论作者声明:个人July 对此24个经典算法系列,享有版权,转载请注明出处。引言:在文本编辑中,我们经常要在一段文本中某个特定的位置找出 某个特定的字符或模式。由此,便产生了字符串的匹配
2017-05-25 11:30:28 429
转载 C++ 排序函数 sort(),qsort()的用法
C库函数qsort,C++库函数sort。其中qsort相对较慢,sort实现非常高效qsort:功 能: 使用快速排序例程进行排序头文件:#include用 法: void qsort(void *base,int nelem,int width,int (*fcmp)(const void *,const void *));参数: 1 待排序数组
2017-05-25 09:02:06 2263
user model linux.doc。该文件是The UML Book的电子版,是word版本。
2018-09-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人