Should be like this:
Code:
	for (x = 0; x < maxX; x++)
	{// <---- opening brace A
		for (y = 0; y < maxY; y++)
		{// <---- opening brace B
			//stuff here
		}// <---- closing brace B
	}// <---- closing brace A

	do
	{
		//stuff here
	}while (mazey[mouseX][mouseY] != 0);
So you have the iostream stuff figured out? You still getting errors?