• Advertisement
Sign in to follow this  

dont understand what the ':' does

This topic is 4386 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im doing Aaron Cox's tutorials and in this constructor, he has the : and then adds 4 more things, can somebody please explain to me what this is called and what it does/is doing. Thank you very much for any help you can offer, // Main constructor takes location and type of block, and a pointer to our bitmap surface. cSquare(int x, int y, SDL_Surface* bitmap, BlockType type) : m_CenterX(x), m_CenterY(y), m_Bitmap(bitmap), m_BlockType(type) { } -Karakadin

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement