您当前的位置: 首页 >  算法

txwtech

暂无认证

  • 3浏览

    0关注

    813博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

cb49a_c++_STL_算法_对所有元素排序_sort_stable_sort

txwtech 发布时间:2020-02-26 12:12:02 ,浏览量:3

cb49a_c++_STL_算法_对所有元素排序_sort_stable_sort
sort(b,e)
sort(b,e,p)
stable_sort(b,e)
stable_sort(b,e,p)

注意:
不适用于list容器,list有成员函数sort();
cb49a_c++_STL_算法_对所有元素排序_sort_stable_sort
sort(b,e)
sort(b,e,p)
stable_sort(b,e) //stirng,按字符个数排序.能够保证位置间前面一致。比如 22 33 55. 555, 如果按个数排序, 22能够保证一直在33前。
stable_sort(b,e,p)//
/*cb49a_c++_STL_算法_对所有元素排序_sort_stable_sort
sort(b,e)
sort(b,e,p)
stable_sort(b,e)
stable_sort(b,e,p)

注意:
不适用于list容器,list有成员函数sort();
*/

#include 
#include 
#include 
#include 
#include 

using namespace std;

template 
void print9(TT9 &ideq)
{
	for (TT9::iterator iter = ideq.begin(); iter != ideq.end(); ++iter)
		cout             
关注
打赏
1665060526
查看更多评论
0.0382s