stl:: sort------how to use sort function on string?
sort function--stl
@rajputrohit157 hey rohit the sort function will work like this
string s;
cin>>s;
sort(s.begin(),s.end());
cout<<s<<" ";
stl:: sort------how to use sort function on string?
@rajputrohit157 hey rohit the sort function will work like this
string s;
cin>>s;
sort(s.begin(),s.end());
cout<<s<<" ";