mardi 13 avril 2021

How to lexicographically compare strings in c++?

I want to create a function to compare two strings lexicographically so that i can sort the strings "aa", "AA", "Bb","bb" in the order "aa" < "AA" < "bb" < "Bb". How can I achieve this in C++?

Aucun commentaire:

Enregistrer un commentaire