weird for loop error

I'm using VS 2012. Does anyone know why I'm getting an error on the x in tempArray on the third line? The error is: "ERROR: identifier x is undefined".

1
2
3
4
 for (int x=0; x < thisClient.getNumInterests(); x++);
	{
		tempArray[x] = tempClient->getInterests(x);
	}


I'm pretty sure I have this loop coded correctly....but maybe I don't....
1
2
3
4
for (int x=0; x < thisClient.getNumInterests(); x++)
{
	tempArray[x] = tempClient->getInterests(x);
}


You had a misplaced semicolon at the end of the first line.
Last edited on
LOL!! Thankyou Gaius!! Looks like I have semi colon blindness!! Thanks again!!
P.s. I'm a bit embarrassed
Topic archived. No new replies allowed.