Quote:
Originally Posted by StainlessS
I suggest that if you dont understand it, you dont use that style,
and old_pixel=*src++ is more like old_pixel=src[0]; src=src+1;
C is part of CPP, if you dont understand C, then you dont understand CPP.
C is a beautifully succinct language, dont knock it.
|
Code:
old_pixel = src[w] // also legitimate C code, and much more readable, and faster than *src++ cuz u got one less "add src, sizeof(pixel type)" operation
Right, we should definitely talk more about succinctness.