What library to use when comparing strings together I alphabetically??? In C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What library to use when comparing strings together I alphabetically??? In C++

i want to arrange strings alphabetically i want to get the first string and the second , like string s1,s1; if (s1 >s2) so i want s1 to be compared to s2 what library should i use in c+*

20th Jan 2017, 8:28 PM
Mina Shaker
Mina Shaker - avatar
1 Answer
+ 2
u need to create a counter that counts every letter in your string and you wount need a library in c++.
26th Jan 2017, 11:30 AM
Catalin Popinciuc
Catalin Popinciuc - avatar