Awakening
Active Member
I've been reading C++ tutorials and I got a question regarding Lazy Foo's SDL tutorials. In his 2nd lesson (and others) he sometimes writes 'SDL_Surface *variable' and sometimes 'SDL_Surface* variable'. Note the position of the *. Check the link below. I know that 'SDL_Surface *variable' declares a pointer so my question is if he have misplaced the * or if 'SDL_Surface* variable' have some other meaning?
CODE
http://www.lazyfoo.net/SDL_tutorials/lesson02/index.php
CODE
http://www.lazyfoo.net/SDL_tutorials/lesson02/index.php
Last edited by a moderator: