I have a question about the alphabetical order of strings in C ++. Let's say I have two lines:
string x="asd123";
string y="asd136";
Can we compare these lines with <or> operators? For example: can we say
if(x>y)
cout<<".....";
Does it always work? Thank.
source
share