Hi, I'm up to the part where you loop through all the squares to draw an X or an O and I'm getting an 'undeclared identifier' for the value of 'iy' even though I declared it as an int inside the for loop and the whole thing is inside curved brackets for the loop so it should stay declared throughout. Can anyone see where I went wrong?
Thanks
Lesson 12 error help
Lesson 12 error help
- Attachments
-
- Lesson 12 code.zip
- Here's the code
- (35.78 KiB) Downloaded 143 times
Re: Lesson 12 error help
I found your error. I'll give you a hint, its a bad spot for a semicolon.
What you call a bug...I call a new feature!
Re: Lesson 12 error help
Hi Fredie
As Walka pointed, the error is due to semicolon at the end of for loop in compose frame
Replace
for (int iy = 0; iy < 3; iy++);
with
for (int iy = 0; iy < 3; iy++)
in ComposeFrame function.
As Walka pointed, the error is due to semicolon at the end of for loop in compose frame
Replace
for (int iy = 0; iy < 3; iy++);
with
for (int iy = 0; iy < 3; iy++)
in ComposeFrame function.
Sumit
Re: Lesson 12 error help
Oh right! Thanks guys =)
Re: Lesson 12 error help
ah sumit you wasnt supposed to show exactly lol he was supposed to find it on his own
What you call a bug...I call a new feature!
Re: Lesson 12 error help
Hehe, that's what I thought too when I read this. Glad to see you guys helpin out though.
Chili