Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Hangman?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xevious




PostPosted: Thu Nov 17, 2005 9:50 pm   Post subject: Hangman?

I'm making a hangman game, and I've run into a slight problem.

I can't get words with two common letters to work using index.

Do I need to find some alternate way to search for letters in the work, or can index be used in some way that I do not know?
Sponsor
Sponsor
Sponsor
sponsor
MysticVegeta




PostPosted: Thu Nov 17, 2005 10:45 pm   Post subject: (No subject)

posting the game would help.
beard0




PostPosted: Thu Nov 17, 2005 10:49 pm   Post subject: (No subject)

when looking for all instances of a letter, you look using index, for the first occurence, and if it's not 0, look in the substring that is the rest of the word, using index, repeat.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: