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,225946aa0d08aebc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-05 18:08:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "Phoenix." Newsgroups: comp.lang.ada References: Subject: Re: Why can't i get an EXE! X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Sun, 6 Jan 2002 02:02:43 -0000 NNTP-Posting-Host: 62.252.8.98 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1010282617 62.252.8.98 (Sun, 06 Jan 2002 02:03:37 GMT) NNTP-Posting-Date: Sun, 06 Jan 2002 02:03:37 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:18585 Date: 2002-01-06T02:02:43+00:00 List-Id: "Preben Randhol" wrote in message news:slrna3f7va.ke.randhol+abuse@kiuk0156.chembio.ntnu.no... > On Sat, 5 Jan 2002 23:33:58 -0000, NTL wrote: > > Package: QUE PACKAGE > > > > Hi > > I am a university student studying computer science's and have to create a > > small program as part of my coursework > > The program below compiles perfectly and builds in ADAGIDE GNAT3.11, > > however, I can not get it to create the .C and .EXE files... am I making > > some small fundemental mistake. > > Yes you must make a file that contains the main procedure. Move to this > procedure the code you have put in que.adb (see below). You will have to > with and use your que package too. > Hi, what has to go into this other file, as i created a file called main.adb, containing use que; and the code below. however it asks for a main.ads file. and I am unsure what goes in here, as if i put the procedure declarations, it will not compile. thanks for the help... David > Check this link : http://www.it.bton.ac.uk/staff/je/adacraft/ > > > > > begin > > loop > > initialiser(q => qs, head => heads, tail => tails); > > Put_Line("****************************"); > > Put_Line(" 1). Add to queue"); > > Put_Line(" 2). remove to queue"); > > Put_Line(" 3). Quit queue program"); > > Put_Line("****************************"); > > get(A); > > case A is --Execute menu option depending on A's value > > when 1 => add(q => qs, head => heads, tail => tails); > > when 2 => remove(q => qs, head => heads, tail => tails); > > when 3 => exit; > > when others => Put_Line("Sorry incorrect entry please retry"); > > end case; > > end loop; > > Preben > -- > () Join the worldwide campaign to protect fundamental human rights. > '||} > {||' http://www.amnesty.org/