Hehe....I've got an evil one for you....
Write a text based Hangman game
What it should do:
1) Take a text file as a command line argument
2) Parse the text file to change all letters to the same case, remove punctuation and remove duplicate words
3) Put words into some data structure
4) Pick a length at random (remove all others from the data structure)
Now for the fun stuff....
5) Prompt user for a letter (Note: that you have not picked a word yet, remove all words from the data structure that contain picked letter)
You will notice that this is a devious program, in that it does whatever it can to tell the user that they entered an incorrect letter, only when the letter chosen results in one word does the program actually 'pick' the word itself.
Challenges:
-Make your own data structure (no STL)
-Play with GUI libraries to make a pretty user interface
__________________
Do be do be do
|