#include <iostream>

#include <cstdlib>

#include <ctime> 

using namespace std; 
int main ()

{

int guess;

unsigned int seed = time (0);

srand (seed);  //different spot?//

int upperBound;

int lowerBound;

int range; 
 
char c; 

bool done = false; 
do {

 bool found =false;

upperBound = 101;

lowerBound = 1; 

	do {
		
	range = (upperBound - lowerBound);
	cout << "hey!" << endl; 
	
	if (range > 0)
	 

	{

	guess = lowerBound + (rand () % range); 

	char response; 

	cout << "Is this your number? (lhy) " << guess << endl;

	cin>> response; 
	switch (response) 
	
	{

	case 'l':
	case 'L':

	cout << "too low" << endl;

	lowerBound = guess +1 ;
	break;

	case 'h':
	case 'H':

	cout << "too high!" <<  endl;

	upperBound = guess - 1;  

	case 'y':
	case 'Y': 

	cout << "yes!" << endl;

	found = true; 

	break;

	default:

	cout << "Huh?" << endl;

	break;

};

} 

else {

cout << "Yay! I know that your number is " << lowerBound << endl; 
}
while (!found);

cout << "Would you like to play again? (Y/N)" << endl; 

cin >> c; 

if (c == 'n')  (c =='N');

done=true; 
	}

I keep getting the same error
1>c:\users\kamron\documents\visual studio 2010\projects\number guess\number guess\guess.cpp(106): fatal error C1075: end of file found before the left brace '{' at 'c:\users\kamron\documents\visual studio 2010\projects\number guess\number guess\guess.cpp(11)' was matched

Please help!!
[/

fatal error C1075: end of file found before the left brace '{' at 'c:\users\kamron\documents\visual studio 2010\projects\number guess\number guess\guess.cpp(11)' was matched

See those left braces you have? All the things that look like this: {

Each one of those should have a matching right brace: }

They don't.

This article has been dead for over six months. Start a new discussion instead.