C++
nooooteY
这个作者很懒,什么都没留下…
展开
-
C++中的unique(),unique_copy(),sort()用法
转自:http://blog.csdn.net/zlhy_/article/details/8784553 在C++中如何使用STL和Algorithm库中的函数一起来获取一个字符串包含的字符集呢?这是今天遇到的问题。 要用到的容器或函数有:string,sort(),unique(),unique_copy()。 string:C++中char *的代替者,使用它处理字符串转载 2013-07-22 22:08:06 · 1078 阅读 · 0 评论 -
C++ STL lower_bound upper_bound
函数作用 iterator lower_bound( const key_type &key ): 返回一个迭代器,指向键值>= key的第一个元素。 iterator upper_bound( const key_type &key ):返回一个迭代器,指向键值> key的第一个元素。 函数介绍 lower_bound()返回一个 iterator 它指向原创 2013-07-21 21:58:58 · 910 阅读 · 0 评论