comp.lang.ada
 help / color / mirror / Atom feed
From: "Luke Guest" <lguest@bubball.com>
Subject: Re: Question from newbie
Date: Mon, 16 Feb 2004 10:49:51 -0000
Date: 2004-02-16T10:49:51+00:00	[thread overview]
Message-ID: <4030a09c.0@entanet> (raw)
In-Reply-To: 40302ec4$1_2@news.tm.net.my

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.






  reply	other threads:[~2004-02-16 10:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16  2:43 Question from newbie Cecilia Chew
2004-02-16 10:49 ` Luke Guest [this message]
2004-02-16 10:53 ` Preben Randhol
2004-02-16 15:46   ` Jacob Sparre Andersen
2004-02-16 16:14     ` Preben Randhol
2004-02-18  9:52   ` Cecilia Chew
2004-02-18 10:19     ` Jacob Sparre Andersen
2004-02-18 10:24       ` Adrian Hoe
2004-02-18 10:24         ` Adrian Hoe
2004-02-18 10:21     ` Adrian Hoe
2004-02-16 11:20 ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox