C++
图片整理
http://www.nowcoder.com/questionTerminal/2de4127fda5e46858aa85d254af43941
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string str; while(cin >> str){ sort(str.begin(), str.end()); cout << str << endl; } return 0; }