Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionselect item using path Pin
yuvachandra27-Feb-07 20:29
yuvachandra27-Feb-07 20:29 
QuestionRe: select item using path Pin
prasad_som27-Feb-07 20:32
prasad_som27-Feb-07 20:32 
AnswerRe: select item using path Pin
yuvachandra27-Feb-07 20:41
yuvachandra27-Feb-07 20:41 
GeneralRe: select item using path Pin
ThatsAlok27-Feb-07 21:26
ThatsAlok27-Feb-07 21:26 
Questionpassing 2 parameter in thread Pin
neha.agarwal2727-Feb-07 19:56
neha.agarwal2727-Feb-07 19:56 
AnswerRe: passing 2 parameter in thread Pin
prasad_som27-Feb-07 20:15
prasad_som27-Feb-07 20:15 
GeneralRe: passing 2 parameter in thread Pin
neha.agarwal2727-Feb-07 20:27
neha.agarwal2727-Feb-07 20:27 
QuestionCalculating possible words from a single letter. Pin
Sauce!27-Feb-07 19:16
Sauce!27-Feb-07 19:16 
Ok, so there is this word that I am trying to remember. Problem is, that I can't remember what it was :P and it's not a real word - it is just made-up.

The thing is though, that it follows all the rules of the english language, so I attempted to make a program that would print every single possible combination of letters to console (up to 10 characters per word) that makes up a legal word in the english language. I have actually done rather well so far, however now I've gotten to the tough part. I need to start calculating each letter in the word.

I know that the word starts with the letter G, so the next obvious step is to figure out if it is possible to put an A next to that G to give me 'GA' then this word (which is completely legal in the english language) is printed to the console so that the user can see it. Then the loop starts again, but this time it tries to combine the letters G and B to give me 'GB'. This isn't possible in the english language so it simply skips ahead to the next letter until it has reached the end of the alphabet and has attempted to combine G and Z. Then the loop will try to append the letters A through Z to all of the currently possible words (GA, GE, GI, GO, GU).

So I now know what I have to do, but I have no idea how to turn it into functioning code.

I was wondering if anybody would like to have a go at making this program for me, or would like to offer some insight as to how I would go about doing it. If you guys would like, I can post my code here for you to work off of.
AnswerRe: Calculating possible words from a single letter. Pin
Stephen Hewitt27-Feb-07 19:50
Stephen Hewitt27-Feb-07 19:50 
GeneralRe: Calculating possible words from a single letter. Pin
Sauce!27-Feb-07 20:11
Sauce!27-Feb-07 20:11 
GeneralRe: Calculating possible words from a single letter. Pin
Stephen Hewitt27-Feb-07 20:16
Stephen Hewitt27-Feb-07 20:16 
GeneralRe: Calculating possible words from a single letter. Pin
David Crow28-Feb-07 2:54
David Crow28-Feb-07 2:54 
GeneralRe: Calculating possible words from a single letter. Pin
Sauce!28-Feb-07 22:53
Sauce!28-Feb-07 22:53 
QuestionFile Handling in vc++ Pin
siddharthsan27-Feb-07 18:53
siddharthsan27-Feb-07 18:53 
AnswerRe: File Handling in vc++ Pin
ThatsAlok27-Feb-07 19:30
ThatsAlok27-Feb-07 19:30 
QuestionRe: File Handling in vc++ Pin
David Crow28-Feb-07 2:56
David Crow28-Feb-07 2:56 
Questionwriting to file Pin
deeps_cute27-Feb-07 18:38
deeps_cute27-Feb-07 18:38 
AnswerRe: writing to file Pin
Hamid_RT27-Feb-07 18:52
Hamid_RT27-Feb-07 18:52 
AnswerRe: writing to file Pin
_AnsHUMAN_ 27-Feb-07 18:54
_AnsHUMAN_ 27-Feb-07 18:54 
AnswerRe: writing to file Pin
ThatsAlok27-Feb-07 19:51
ThatsAlok27-Feb-07 19:51 
AnswerRe: writing to file Pin
Paresh Chitte27-Feb-07 20:34
Paresh Chitte27-Feb-07 20:34 
GeneralRe: writing to file Pin
ThatsAlok27-Feb-07 21:20
ThatsAlok27-Feb-07 21:20 
QuestionListControl Pin
Anilkumar K V27-Feb-07 18:04
Anilkumar K V27-Feb-07 18:04 
AnswerRe: ListControl Pin
Hamid_RT27-Feb-07 18:55
Hamid_RT27-Feb-07 18:55 
AnswerRe: ListControl Pin
prasad_som27-Feb-07 19:00
prasad_som27-Feb-07 19:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.