Comparing integers is easy using the < , > or = operators.

You need to use a string compare (strcmp()) for comparing 2 strings (char arrays). Check the link for an example.

http://www.cplusplus.com/reference/c...ng/strcmp.html