C++对字符串每个字母按照字典顺序排序

    科技2022-09-01  110

    #include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string ss="hello"; sort(ss.begin(),ss.end()); cout<<ss<<endl; //ehllo return 0; }

     

    Processed: 0.008, SQL: 9