From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,697fa9e83df511c1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-22 12:15:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!mango.news.easynet.net!easynet-melon!easynet.net!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Help setting up an array of records Date: Wed, 22 May 2002 19:15:46 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1022094946 12325 129.241.83.82 (22 May 2002 19:15:46 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 22 May 2002 19:15:46 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:24542 Date: 2002-05-22T19:15:46+00:00 List-Id: On Wed, 22 May 2002 15:09:44 +0000 (UTC), Matt Thomas wrote: > I know this might be a stupid question to most of you but i have just > started using Ada. > > For my uni coursework i have to write a program to simulate a vending > machine. > > I'm using an array of records to represent the items in the vending machine > but I dont know how to actually get the information into my array. I need > to specify the name of the item, its cost and the quantity left. > > Here is the record and array declaration, any help would be grateful. Read: http://goanna.cs.rmit.edu.au/~dale/ada/aln/6_arrays.html and http://www.it.bton.ac.uk/staff/je/adacraft/ch06.htm Preben