排序代码如下:
#include <iostream> #include <algorithm> #include <string> using namespace std; int main(int argc, char const *argv[]){ string str; cin>>str; sort(str.begin(), str.end()); cout<<str<<endl; return 0; }
排序代码如下:
#include <iostream> #include <algorithm> #include <string> using namespace std; int main(int argc, char const *argv[]){ string str; cin>>str; sort(str.begin(), str.end()); cout<<str<<endl; return 0; }