Thanks for your help
Thanks for your help
Last edited by rogerw; 05-10-2011 at 08:31 AM. Reason: found it out
The mask array is simply what you show to the player, to mask the letters off that have not been guessed properly yet.
size_t is an unsigned int.
strcmp() compares two strings to see if they're equal:
strcmp(string1, string2) > 0 indicates that string1 is sorting higher than string2, in your systems character set.
A return of 0 indicates that the two strings are the same, while a return of < 0 indicates that string2 is greater than string1. (the larger end of the < always points to the greater string)
Thank you very much, that cleared things up.