make it remember the correct letter the user enter |
What do you mean by that? The letter the user entered is stored in Letter (downshifted).
Line 4: You include the <string> header, but don't use it.
Line 15: Why are you declaring your own String type? This is ugly.
Line 16: Best practice is to avoid use of globals.
Line 18: void main () is incorrect. It should always be int main().
Line 58: You should call srand() only once in your game. You're calling it each time runGame is called.
Line 59: What is the point of this loop? Assuming you read at least one word from the file, this loop will never be executed.
Line 66: What is the point of this loop?
Line 76: subscript is initialized to 0 at 42, but it poor practice not to initialize it here.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.