I need to know how to get the solution mentioned below to work. The
solution is from gbayles Jan 29 2001, 12:50 pm, link is provided below:
[color=blue]
> http://groups.google.com/group/comp....c43260a5310?hl
>
>Another way is to create a one dimensional array and handle the
>indexing yourself (index = row * row_size + col). This is readily
>implemented in template classes that can create dynamically allocated
>multi-dimensional arrays of any element type and number of
>dimensions.[/color]
What would be the syntax for created a template that allowed a
one dimensional dynamic array, to be addressed using the conventional
syntax for accessing a two dimensional array? I am thinking that this
must be some sort of operator[] overloading.
Thanks,
Peter Olcott
solution is from gbayles Jan 29 2001, 12:50 pm, link is provided below:
[color=blue]
> http://groups.google.com/group/comp....c43260a5310?hl
>
>Another way is to create a one dimensional array and handle the
>indexing yourself (index = row * row_size + col). This is readily
>implemented in template classes that can create dynamically allocated
>multi-dimensional arrays of any element type and number of
>dimensions.[/color]
What would be the syntax for created a template that allowed a
one dimensional dynamic array, to be addressed using the conventional
syntax for accessing a two dimensional array? I am thinking that this
must be some sort of operator[] overloading.
Thanks,
Peter Olcott
Comment