Thread: Game question

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    2

    Question Game question

    Thanks for your help
    Last edited by rogerw; 05-10-2011 at 08:31 AM. Reason: found it out

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    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)

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    2
    Thank you very much, that cleared things up.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game question. help me
    By akaile in forum C++ Programming
    Replies: 9
    Last Post: 10-29-2009, 11:25 AM
  2. Odd Game question
    By geek@02 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 12-15-2007, 01:04 PM
  3. Game Simulation Question !
    By Astra in forum Game Programming
    Replies: 8
    Last Post: 11-20-2006, 01:36 PM
  4. One question to C++ game programmers
    By incognito in forum C++ Programming
    Replies: 6
    Last Post: 12-31-2001, 11:47 AM
  5. Question about a game
    By TheGr8one in forum Game Programming
    Replies: 1
    Last Post: 09-15-2001, 10:44 PM