I\'m a c++ newbie (just oldschool c). My son asked for help with this and I\'m unable to explain it. If he had asked me \"how do I compare strings\" I would have told hi
If you want to compare actual C++ strings, you need to declare C++ strings:
int main() { const std::string a("A"); const std::string z("Z"); cout << (z < a) << endl; // false cout << (a < z) << endl; // true }