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,866f55656f224cc8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-16 02:49:59 PST From: "Luke Guest" Newsgroups: comp.lang.ada References: <40302ec4$1_2@news.tm.net.my> Subject: Re: Question from newbie Date: Mon, 16 Feb 2004 10:49:51 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 195.74.122.227 Message-ID: <4030a09c.0@entanet> X-Trace: 16 Feb 2004 10:51:08 GMT, 195.74.122.227 Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nx02.iad01.newshosting.com!newshosting.com!diablo.voicenet.com!204.59.152.222.MISMATCH!newsfeed.yul.equant.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!entanet!195.74.122.227 Xref: archiver1.google.com comp.lang.ada:5591 Date: 2004-02-16T10:49:51+00:00 List-Id: This looks like coursework to me. You should really look a bit harder. Luke. > ============================================================================ = > Question: > 1. As the procedure ascending compiles as a independent unit with the > other file name, it could sort the two characters correctly. > However, as I put it together with sort.adb program. Specification > part that declared the procedure ascending conflict with the > variable left and right. Where is the mistake? I'll give you a hint, parameter and local variable names. > 2. Before plug in the procedure ascending, the program successfully > being compiled. But the program can't allocate the specified space > as x characters in outputting the result. For an example, user > specified 2 characters, but the program still allow user to input > less than or excess 2 characters..Where is the mistakes? Check your for loop when inputting the characters.