Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::lexicographical_compare is an STL algorithm to determine if two sequences of characters are in an alphabetically sorted order. Note that std::strings are compared this way by default.
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.