cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : problem, word program
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  problem, word program

tyler (22)
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
|
helios (829)
This is in the wrong board and it at least sounds like a request.
|
tyler (22)
i posted here because i thought using bash would be easier to compare stuff.
thanks anyways
|
Mitsakos (343)
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

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us