Don't even know where to start...

This is a discussion on Don't even know where to start... within the C Programming forums, part of the General Programming Boards category; Im on my last program (thank god!!) and I am stumped as to where to even begin. This program is ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    13

    Don't even know where to start...

    Im on my last program (thank god!!) and I am stumped as to where to even begin. This program is basically a scrabble game. My professor has given us a skeleton code, which i think makes this harder but what do I know, and basically I need to fill in the blanks. I need to write a function that when given a list of tiles that the user has, and a word that they wish to enter, will determine has the tiles to make the word. If anyone could help me figure out how to start this I would apperciate it. Thanks in advance!!

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    ohh man u been posting in how many boards

    One here



    ssharish2005

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    > I need to write a function that when given a list of tiles that the user has, and a word that they wish to enter, will determine has the tiles to make the word
    OK, you don't need a 2D grid for a scrabble board for that, just a couple of strings.

    Code:
    #include <stdio.h>
    int canMakeWord ( char *hasLetters, char *needWord ) {
      int result = 0;
      // do something here
      return result;
    }
    int main ( ) {
      printf( "Result=%d\n", canMakeWord("qwerty", "try" );  /* should print 1 */
      printf( "Result=%d\n", canMakeWord("qwerty", "hello" );  /* should print 0 */
      return 0;
    }
    Have a go at writing something there
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    13
    thank you. i apperciate your help


    **and i know ive posted on another site. i am desperate here and need help. the school computer science deparment is not very helpful and im completely lost. i am sorry if i am annoying some of you. i was just looking for any help at all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  2. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  3. C++ gui for windows where to start
    By prixone in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2006, 10:48 PM
  4. GNOME Desktop won't start (Mandriva)
    By psychopath in forum Tech Board
    Replies: 10
    Last Post: 07-19-2006, 01:21 PM
  5. Start bar color in WinXP
    By confuted in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 06:18 AM

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