Mail Archives: djgpp/1997/02/06/03:10:27
Demandred wrote:
>
> If I declare an array of objects of type Foo
> And pass a pointer to a Foo into a function (or class constructor)
> Can I access elements in the array in the function, like so?
>
> ...array[3]...}
Yes. Passing a pointer and an array are identical constructs, as long
as you aren't dealing with multi-dimensional arrays. Those start to get
more fun. :)
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Proud owner of what might one | http://www.cs.com/fighteer |
| day be a spectacular MUD... | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------
- Raw text -