Re: Array of class and a pointer to it
- From: "Boni" <oilia@nospam>
- Date: Thu, 5 May 2005 18:55:47 +0200
> No, the above line is invalid.
> and this line is also invalid.
Hi Brian,
thanks to pointing that out. I am sorry for that advice.
> Ah, but that's not the same, is it? You have created an array of pointers,
> not a two-dimensional array, which is what the OP wants.
I think you are wrong on that. There is physically no such thing as a 2
dimentional array in the memory. It is array of pointers to pointers. The
first operator[] take the pointer to the array of values the second
operator[] takes the value.
With best regards,
Boni
.
- Follow-Ups:
- Re: Array of class and a pointer to it
- From: Brian Muth
- Re: Array of class and a pointer to it
- References:
- Array of class and a pointer to it
- From: Eitan
- Re: Array of class and a pointer to it
- From: Boni
- Re: Array of class and a pointer to it
- From: Brian Muth
- Array of class and a pointer to it
- Prev by Date: Re: static keyword in non-class functions?
- Next by Date: Re: Background color of TextBox control
- 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
|