A
asdf
How to understand "this" pointer? It is so tricky, I read several books
but couldn't figure it out.
but couldn't figure it out.
Then they can't be very good.asdf said:How to understand "this" pointer? It is so tricky, I read several books
but couldn't figure it out.
asdf said:How to understand "this" pointer? It is so tricky, I read several books
but couldn't figure it out.
I forgot to mention the same question was asked on or about the 28th ofIan said:Then they can't be very good.
What specific questions do you have?
asdf said:How to understand "this" pointer? It is so tricky, I read several books
but couldn't figure it out.
How to understand "this" pointer? It is so tricky, I read several books
but couldn't figure it out.
Frederick Gotham said:asdf:
You can use "this" within a member functions (including
constructors, destructors and operator overloads). It's a pointer to
the current object.
Daniel said:I'd like to ask a bit about use of 'this' in the constructor. Until the
constructor exits, the object doesn't officially exist right?
I know
virtual function calls should be avoided, and I find myself wondering,
what exactly does 'this' represent in the constructor?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.