I am sorting my array of car two ways. one by year which is shown below. and another one by make. Make is a char* How do I compare strings when I just have pointers to the
strcmp() will help you to compare two char* http://www.cplusplus.com/reference/cstring/strcmp/?kw=strcmp