Hang Man...

I've recently decided to take a stab at creating a hangman program...
Right now my program prompts the user for the size of the word he/she would
like to solve... i.e. 3 letter words vs. 4 or 5 letter words
I then use a 'class' for the sake of organization to open a .txt filestream
corresponding to the size of words (three.txt, four.txt)... each has a static const number of words .. right now 30.

I then use rand (seeded with unsigned(time)) modded with 31 to select a random word... What I can't figure out is how to use getline to select this randomly selected line and enter it into my string... I have not practiced very much at all with getline and am currently stuck.. any help?
Topic archived. No new replies allowed.