Header file #include <cstring>
copy
strcpy:
char A [10], b [10];
strcpy (a, b);
the b copied to a, i.e. a = b.
Compare
strcmp:
char A [10], B [10]
strcpy (A, B);
if a = b returns 0, a> b returns a positive number, a <b returns a negative
magnitude comparison front to back a relatively past, If the same or different on the back until relatively complete, if different immediately return a result, the comparison is the ASCII value of the character.