Fatal errors

Deleted
Last edited on
I don't undersatnd what this is:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

	while ( ! (cin >> guess))
	{
	
		test=test_letter(guess);
	if(test==1)
	{
		cout<<"Correct Guess\n";
	}


		
	   if (guess == hidden_word[i])
	   {
         display_word[i]= (guess);
		}
	}

	cin.get();
	cin.get();


because its not part of the main.
Getting rid of the while loop gets rid of the errors. How can I properly integrate it into the main?

This while loop is so the program can test for correct inputs.
Why not create a function call TestInput(char Letter) which does that? THen call it from the main.

Its recommended that you read:

http://www.cplusplus.com/doc/tutorial/functions/
so in dummy terms, what is needed to fix the error and have it so that the letter which is inputted by the user will be compared to the chosen word from the list and then if correct change the '*' the letter?
Cheers :)
Last edited on
Topic archived. No new replies allowed.