Mail Archives: djgpp/1995/02/15/07:56:09
Dear all
Re my problem with arrays of objects...
Here is an approximation to the code that would not compile,
TiffImage Images[NUMBER_OF_IMAGES];
(NUMBER_OF_IMAGES is defined in a preprocessor directive) were upon,
the compiler apologised. I also tried
TiffImage *Images = new TiffImage [NUMBER_OF_IMAGES];
which complied fine, except for when I tried to access the members via
the normal subscripting, i.e Images[1] started talking about pointer offsets.
I will try a bag (what is a bag anyhow?...just off to the library me thinks).
Love and Hugs
Ben Runnacles
Vision Speech and Signal Processing Group
University of Southampton, UK.
- Raw text -