Re: Array of class and a pointer to it
- From: "James Curran" <jamescurran@xxxxxxxx>
- Date: Mon, 9 May 2005 17:42:29 -0400
"Tom Alter" <Lord2702@xxxxxxx> wrote in message
news:eApVjDEUFHA.3056@xxxxxxxxxxxxxxxxxxxxxxx
> MyClass m_pMyClass[4][8];
> when you define like this, the m_pMyClass is a pointer to the first of 4x8
arrays, and pointing to the (0,0) object.
m_pMyClass is not a pointer, but an array. When used without [], it can
be used as a shorthand for the address of the first element of the array,
but that does not make it a "pointer" (for such reasons as it cannot be
assigned to).
--
--
Truth,
James Curran
[erstwhile VC++ MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
.
- References:
- Array of class and a pointer to it
- From: Eitan
- Re: Array of class and a pointer to it
- From: Tom Alter
- Array of class and a pointer to it
- Prev by Date: Re: Is this version SDK fit for me?
- Next by Date: Re: Command line compile--how to set dynamic link?
- Previous by thread: Re: Array of class and a pointer to it
- Next by thread: Re: Array of class and a pointer to it
- Index(es):
Relevant Pages
|