自己选择的路,跪着也要走完! WJMZBMR

bjqstar

STL

Algorithm里其他好用的函数

Next_permutation

int a[]={1,2,3,4};

next_permutation(a,a+3);//下一个全排列

Lower_bound与Upper_bound

lower_bound(first,last,val);//有返回值
upper_bound(first,last,val);

posted on 2017-11-04 20:20  bjqstar  阅读(82)  评论(0编辑  收藏  举报

导航