全排列
#include<algorithm> 下的 next_permutation(iterator,iterator);
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
string str="abc";
//从这一项开始 全排列 按字典大小
do{
cout<<str<<endl;
}while(next_permutation(str.begin(),str.end()))
//从这项开始 全排列 但不含本身 按字典大小
while(next_permutation(str.begin(),str.end()))
cout<<str<<endl;
return 0;
}