Sorting | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Sorting

C++ How to sort words in lexicographical order with the help of #include<set>? (give me code please) Input: 3 (quantity of elements) C A B

26th Jun 2017, 7:14 PM
Maria
Maria - avatar
1 Answer
+ 1
std::sort will do ^^ from algorythm library
26th Jun 2017, 8:07 PM
Jakub Stasiak
Jakub Stasiak - avatar