摘要:
在标准库算法中,next_permutation应用在数列操作上比较广泛.这个函数可以计算一组数据的全排列.但是怎么用,原理如何,我做了简单的剖析.首先查看stl中相关信息.函数原型:template<class BidirectionalIterator> bool next_permutation( BidirectionalIterator_First, BidirectionalIterator_Last );template<class BidirectionalIterator, class BinaryPredicate> bool next_permut 阅读全文
posted @ 2011-06-27 21:25
fly_away
阅读(250)
评论(0)
推荐(0)
浙公网安备 33010602011771号