📅  最后修改于: 2022-03-11 14:56:08.039000             🧑  作者: Mango
void permutation(string s)
{
sort(s.begin(),s.end());
do{
cout << s << " ";
}
while(next_permutation(s.begin(),s.end()); // std::next_permutation
cout << endl;
}