Fatal errors

Dec 4, 2012 at 5:53pm
Deleted
Last edited on Dec 7, 2012 at 11:57pm
Dec 4, 2012 at 6:02pm
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.
Dec 4, 2012 at 6:57pm
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.
Dec 4, 2012 at 7:36pm
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/
Dec 4, 2012 at 9:10pm
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 Dec 4, 2012 at 9:10pm
Topic archived. No new replies allowed.