From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Help setting up an array of records
Date: 22 May 2002 12:39:53 -0400
Date: 2002-05-22T16:46:48+00:00 [thread overview]
Message-ID: <u4rh0jfvq.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: acgcbn$sue$1@paris.btinternet.com
"Matt Thomas" <matt_ontheroad@hotmail.com> writes:
> I know this might be a stupid question to most of you but i have just
> started using Ada.
No problem. We don't do homework, but we will answer specific questions.
> <snip>
> MACHINE_SLOTS : constant := 6; --
>
> type PRODUCT_TYPE is
> record
> NAME : STRING (1..12);
> LEN : POSITIVE;
> PRICE : INTEGER;
> QUANTITY : INTEGER;
> end record;
>
> type PRODUCT_TYPE_ARR is array (1..MACHINE_SLOTS) of PRODUCT_TYPE;
>
> PRODUCT : PRODUCT_TYPE_ARR;
This is a good start. Now show what you have tried to do that doesn't
work, so we can make suggestions.
--
-- Stephe
next prev parent reply other threads:[~2002-05-22 16:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-22 15:09 Help setting up an array of records Matt Thomas
2002-05-22 16:39 ` Stephen Leake [this message]
2002-05-22 17:18 ` Marin David Condic
2002-05-22 17:32 ` Mark Johnson
2002-05-22 19:15 ` Preben Randhol
2002-05-23 1:58 ` Steve Doiel
-- strict thread matches above, loose matches on Subject: below --
2002-05-26 13:00 help " Matt Thomas
2002-05-26 13:18 ` Preben Randhol
2002-05-26 13:24 ` Preben Randhol
2002-05-26 16:10 ` Matt Thomas
2002-05-28 15:01 ` Marin David Condic
2002-05-26 16:16 ` Matt Thomas
2002-05-26 19:53 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox