1 | initial version |
You need to change
for(int i=0;iheight;i=i++)
to for(int i=0; i < img->height; i++)
and for(int j=0;jwidth;j++)
to for(int j=0; j < img->width; j++)
.<img->
was incorrectly identified as a HTML tag and because the browser does not understand that tag, it ignores it.
Generally, you should try to understand the source code, that you are trying to compile :-).
BTW: In case of inexplicable crashes: