Array of class and a pointer to it



Hello,

I defined a class name MyClass.

I would like to define an array of 4 by 8 of that class.
I would like to define a pointer to the array of MyClass.

I tried it with static definition:
MyClass m_MyClass[4][8] ;
I can not seem to find the way to define a pointer to this array?!?!?

I tried also to define it with the new operator but had similar results.

Any ideas how to do it?

Eitan

.



Relevant Pages

  • Re: Looking for speed performance to draw line.
    ... each item in an array, that being the next and/or previous indexes. ... and it's next pointer to the previous item's original next pointer. ... Next -1, Prev 0 ... shapes up into shape classes that implemented the required commands ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Array of class and a pointer to it
    ... "John Carson" wrote: ... >> The buttom line, I understand, there is no way to define a pointer to ... >> MyClass and use it to access 2 dimension array of MyClass. ...
    (microsoft.public.vc.language)
  • Re: Array of class and a pointer to it
    ... "John Carson" wrote: ... >> The buttom line, I understand, there is no way to define a pointer to ... >> MyClass and use it to access 2 dimension array of MyClass. ...
    (microsoft.public.vc.language)
  • Re: passing a string to a C++ function
    ... method to get a pointer into an array, since I assume that he was first to ... Loz. ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: Array of class and a pointer to it
    ... an array of 8 MyClass instances. ... m_MyClass may therefore be interpreted as a pointer to an array of 4 ... Prev by Date: ...
    (microsoft.public.vc.language)