www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/16/05:49:57

Subject: Re: Implementation of C++...the return
To: wolfe!resrch!janr AT soton DOT ac DOT uk (Jan Reimers)
Date: Thu, 16 Feb 1995 09:53:49 +0000 (GMT)
From: "B.S.Runnacles" <B DOT S DOT Runnacles AT soton DOT ac DOT uk>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 
> > 
> > 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
>                ^^^^^^^^^^^
> 
> Please be more specific, you seem to be trickling out information in
> very tiny packets!
> Does your TiffImage class have a default constructor?   If not you
> need to define one to make arrays.
> 
> > 
> > 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
>   ^^^^^^^^^^^^^
> 
> Gag, barf, yak!
> 
> > 
> > Ben Runnacles
> > Vision Speech and Signal Processing Group
> > University of Southampton, UK.
> > 
> > 
> 
> 

The object is a bit of a bodge, trying to add a nice object front end to some
old C code for reading TIFF compliant images.  There is indeed a default 
constructor, I will try and post the complete code at some point, my
mail machine is not my work machine, so this may be problematic. 

When I say the compiler apologised, I mean it said 'Sorry, not implemented' or
words to that effect, is if it were having tea with the vicar or something.

Death, Violence and Pestilance before bedtime (more to your taste?)

Ben Runnacles
I.S.I.S (New name!!!!)
Unversity of Southampton, UK.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019