- 1
You can use std::sort in <algorithm> header. Ex. std::string word = "gdrua"; std::sort(word.begin(), word.end()); cout << word; This for c++.
13th Dec 2016, 2:59 PM
Aris Sugiarto
Aris Sugiarto - avatar