STL中的全排列next_permutation函数

#include 
#include 
using namespace std;

//next_permutation()函数返回的是bool值,排列的范围为[first,last) 
int main()
{
	int myints[]={1,2,3};
	
	sort(myints,myints+3);
	
	cout<<"The 3! possible permutations with 3 elements:\n";
	do
	{
		cout<

你可能感兴趣的:(STL中的全排列next_permutation函数)