I don't know how to use it.can you help me?
int strcmp( const char* s1, const char* s2 );
Compares the C-string pointed to by s1 to the C-string pointed to by s2.
if s1 < s2 then -1 is returned;
if s1 > s2 then +1 is returned;
if s1 == s2 then 0 is returned.
Just to add a little something:
if s1 < s2 then the returned value<0;
if s1 > s2 then the returned value>0;
if s1 == s2 then the returned value==0.