Re: array
From: Rudy Velthuis (TeamB) (rvelthuis_at_gmx.de)
Date: 10/13/03
- Next message: Rudy Velthuis (TeamB): "Re: array"
- Previous message: John Herbster \(TeamB\): "Re: Type Conversion Problems"
- In reply to: ads: "array"
- Next in thread: Perry Way: "Re: array"
- Reply: Perry Way: "Re: array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Oct 2003 09:54:26 -0700
ads wrote:
> Hello,
>
> I have TScanline32 = array[0..0] of TRGBQUAD;
>
> what is the range here? I know something like array[0..9] but not
> [0..0]
It is an array of one TRGBQUAD. Such definitions are usually used for
(pointers to) variable size arrays. I prefer to declare something a lot
bigger, and then use a *pointer* to that:
PMyScanLine = ^TMyScanLine;
TMyScanLine = array[0..65535] of TRGBQuad;
--
Rudy Velthuis (TeamB)
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg."
- Bjarne Stroustrup
- Next message: Rudy Velthuis (TeamB): "Re: array"
- Previous message: John Herbster \(TeamB\): "Re: Type Conversion Problems"
- In reply to: ads: "array"
- Next in thread: Perry Way: "Re: array"
- Reply: Perry Way: "Re: array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|