Re: Tutorial videos by LCL
Posted: Thu Jun 14, 2012 6:56 am
I could check it, but I'd hope you to post your GED, because then I could use the exactly same picture as you do and I wouldn't have to copy any code. =)
EDIT: I see one mistake you have done, you have used i two times in different for loops. Change the second of them to something else, like k, which you haven't used yet. (I am not actually sure if this can cause problems, I am just used to use different integers for every for loop..)
EDIT 2: Also, this shouldn't be like this:
but instead:
Because with your code... well I believe you know why it won't work.. the value is never smaller than 0, so it won't run the for loop even once. =D
EDIT: I see one mistake you have done, you have used i two times in different for loops. Change the second of them to something else, like k, which you haven't used yet. (I am not actually sure if this can cause problems, I am just used to use different integers for every for loop..)
EDIT 2: Also, this shouldn't be like this:
- Code: Select all
for(j = HEIGHT-1; j <= 0; j--)
but instead:
- Code: Select all
for(j = HEIGHT-1; j >= 0; j--)
Because with your code... well I believe you know why it won't work.. the value is never smaller than 0, so it won't run the for loop even once. =D