The idea of comparing the number of strings is as follows. Suppose that the comparison strings A and B are integers.
First, the lengths la and lb are obtained respectively.
If la is greater than lb, directly judge that a is greater than b, and vice versa.
If the length is the same
For loop, loop la times, i=0.
See which is bigger *(a+i) or *(b+i). If the former is bigger and the result A is bigger, then jump out of the loop; If the latter is bigger and the result comes out, then jump out of the loop.
If the sizes are the same, i++ Next cycle
If the loop is not as big as the result after the loop ends.
Let's not talk about sorting methods. With the comparison method, sorting is simple.
Recently, many beautiful Tik Tok network celebrities are using it. so this is it£¿ ? This piece of music filmed bm cr