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