Game question

This is a discussion on Game question within the C Programming forums, part of the General Programming Boards category; Thanks for your help...

  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 09: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, 12:25 PM
  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, 11:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21