Logo

Light Bulb

countdown

This program makes the longest english word from a selection of letters and checks it in the dictionary. It is written in C and is compatible with both Windows and Linux. The name of the project is from the British TV gameshow called countdown.


Version 2 saves reults to a file called output.dat in DOS or ./output.dat.tmp in LINUX, and speeds up operation - No more annoying Continue / Stop prompts - a real must have feature.


How it Works

  1. Instead of randomly generating words the program asks for an input of 9 letters.
  2. The letters are stored in an array - givenletters.
  3. The dictionary is opened and is read line-by-line.
  4. On each line is a new word (max length 9 letters - program may get stuck in a loop if it is longer).
  5. The program loads the word into an array - text.
  6. It then searches the given letters for the first character in text - then the second, third and so on.
  7. If a letter is accepted 1 is added to the score.
  8. The program uses strlen (string.h) to get the length of text.
  9. If the score is equal or greater then the user is asked whether they want to stop the search or not!


Download

Includes:-

  1. Source Code
  2. Readme File
  3. Executable
  4. 5 Word Dictionary

Version

Target

2.0

Windows

Linux

1.0

Windows

Linux

Dictionary (97,000 words)

All

Copyright © Illuminate 2004