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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec45270343d0ae14 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-17 15:16:22 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeed.icl.net!dispose.news.demon.net!demon!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <9909pn$19j2@tech.port.ac.uk> Subject: Re: Please give me some hints... 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: Sat, 17 Mar 2001 23:10:35 -0000 NNTP-Posting-Host: 62.253.13.186 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 984870629 62.253.13.186 (Sat, 17 Mar 2001 23:10:29 GMT) NNTP-Posting-Date: Sat, 17 Mar 2001 23:10:29 GMT Organization: ntlworld News Service Xref: supernews.google.com comp.lang.ada:5819 Date: 2001-03-17T23:10:35+00:00 List-Id: One thing i forgot. You can't use a variable for the the array bounds in many circumstances -- though there are some but your a beginner, right?. Maybe you should use a constant for this. I tried this by making num_of_integer a constant but it wouldn't compile, so i fixed the array bounds and tried to compile it. It didn't work! What i would suggest is you look at your spec. If i understand your program correctly you ask for the min/max numbers which are used to calculate num_of_integers. This then seems to be used as if it were the bounds of the array. You know there will be five number so this seems unneccessary. If your intention was to do something else, you may need to revise your design -- be it on paper or in your head. Hope this is helpful, Chris Campbell "chris.danx" wrote in message news:STRs6.10259$bL.819321@news6-win.server.ntlworld.com... > Look at line 9 'num_of_integer', then look at line 12. > Then look at the warnings given by the compiler. > > If you do this you'll be able fix it. > > One hint: when an exception is raised the line number is given. Use this to > track it down. In this case it was line 12. > > > Chris Campbell > > > "WWM" wrote in message > news:9909pn$19j2@tech.port.ac.uk... > > I have written a program: input 2 integers, output sorted integers > > one-by-one by descending order. e.g. > > > > > > Input an integer: 2 > > Input another one: 7 > > > > The sorted integer is: 7 6 5 4 3 2 > > > > > > > > The problem is, when I run it, it says: STORAGE_ERROR > > > > Can any one help??? > > > > > > > > > > > >