I did not understand how bhaiya compare the 3 string by making compare function.
How prateek bhaiya compare the string
hi @mayurjhode55 did you understand how the sorting function is working without the compare function?
yes that part i understood very well .
@mayurjhode55 we made our own custom comparator to modify how the sort function works. We pass the address of that function as an argument to the sort function and the inbuilt sort function uses that function instead of the default compare function, and sorts the strings accordingly. The string comparison is based on their dictionary order.
Please mark your doubt as resolved if I was able to clarify it.
Hello ma’am i am getting lots of problem in string topic,even i dont know how to take 2 strings simultaneously ,tell me resource from where i can read basics of string.
hi @mayurjhode55 you can see this documentation of the string STL here http://www.cplusplus.com/reference/string/string/ it covers everything and you will not find a more comprehensive guide than this.
okay thank you ma’am
I did not understand how bhaiya use greater then and less than sign.
