i have an assignment to do but i'm still not good at c++programming..
the question is:
--------------------------------------------------------------------------
Write a program in C++ that allows users to play the game of Hangman. The program stores a
series of words in a file called words.txt, and randomly chooses one word to be guessed by users
each time they play the game. Each user can make as many guesses as possible, as long as he/she
do not exceed 8 wrong guesses before he/she “is hanged. For each guess, draw the progress of
the “man being hanged. A user has the option to request for hints, but he/she is only allowed to
request a maximum of three hints per game.
The program also allows the users the option to add and delete a word in the file word.txt. But
this option is only allowed for an administrator, thus it needs a password before the user can
make any changes to the file. Ensure that your program maintains this level of security.
--------------------------------------------------------------------------
my questions are
1.how to store series of words in a file called words.txt?
2. how to let the computer randomly choose a word to be guessed by user each time he/she plays the game. I only know how to set the system randomly pick the numbers by using rand() in c++, but for words.. how and what should i do?
3. how to do the last part???
The program also allows the users the option to add and delete a word in the file word.txt. But
this option is only allowed for an administrator, thus it needs a password before the user can
make any changes to the file. Ensure that your program maintains this level of security.
HELP MEEEE....GUIDE NEEDED....