string s;
s="abc";
do
{
cout<<s<<endl;
}while(next_permutation(s.begin(),s.end()));
转载于:https://www.cnblogs.com/OIEREDSION/p/11448289.html
string s;
s="abc";
do
{
cout<<s<<endl;
}while(next_permutation(s.begin(),s.end()));
转载于:https://www.cnblogs.com/OIEREDSION/p/11448289.html