I am comparing two strings "Good Luck" > "Good Bye" in c++. Shouldn't the boolean result be true? The 'L' is greater than the 'B' The blank space between the words is one whitespace.
However, I am getting false with run the code.
Do you know why? Below is my code.
#include <iostream>
using namespace std;
int main()
{
bool result = "Good Luck" > "Good Bye!";
cout << result;
return 0;
}