标签:ESS perm pre ons str process nta void cpp
void process1(string str, int i){
if(i == str.length()){
cout << str << endl;
}
for(int j = i;j < str.length(); j++){
swap(str[i], str[j]);
process1(str, i+1);
}
}
void printAllPermutations1(string str){
process1(str, 0);
}
标签:ESS perm pre ons str process nta void cpp
原文地址:https://www.cnblogs.com/dysjtu1995/p/11351063.html