全排列 next_permutation() 函数的用法

在头文件<algorithm>里面有如下代码: int a[]; do { } while(next_permutation(a,a+n)); 可产生1~n的全排列有如下代码: 1 #include <stdio.h> 2 #include <algorithm> 3 using namespace
posted @ 2018-08-18 13:41  白雪儿  Views(31380)  Comments(0Edit  收藏  举报