[try Beta version]
Not logged in

 
problem, word program

Aug 20, 2008 at 6:25am
i need to make a program which reads from a file which has a word list. i then need to input more than 3 letters, and less than 8, and then see how many words which are present in the wordlist can be made from those particular letters and then output those words.
any help will be apppreciated
thanks a lot
tyler
Aug 20, 2008 at 12:43pm
This is in the wrong board and it at least sounds like a request.
Aug 20, 2008 at 12:58pm
i posted here because i thought using bash would be easier to compare stuff.
thanks anyways
Aug 20, 2008 at 4:02pm
I did something similar a few days ago.

I read the words into a map of type <string, string>. Then using nested for-loops I found all the combinations that the letters can make and using the map I checked if they exist in there.

Hope this helps.
Last edited on Aug 20, 2008 at 4:02pm
Topic archived. No new replies allowed.