标签:
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { int NUM; string list; cin>>list,NUM = list.length(),sort(&list[0],&list[0]+NUM),cout<<list<<endl; while(next_permutation(&list[0],&list[0]+NUM))cout<<list<<endl; }
标签:
原文地址:http://www.cnblogs.com/gavinsp/p/4566529.html