Shows how to use xtd::string::compare method.
#include <xtd/console>
#include <xtd/string>
auto main() -> int {
auto result = string::compare("Aaa", "aaa", true);
if (result < 0)
console::write_line("Aaa < aaa");
else if (result > 0)
console::write_line("Aaa > aaa");
else
console::write_line("Aaa == aaa");
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10