Using function arrange small letters before capital letters using cstring
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; int main() { string s; getline(cin,s); sort(s.begin(),s.end()); cout<<s<<endl; return 0; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments