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 X-Google-Thread: 103376,46ea53533b75e179 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-26 07:43:32 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stueberl.de!news-stoc.telia.net!news-stoa.telia.net!telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: sv, en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: count_string program References: <403db7ee$1_1@news.tm.net.my> In-Reply-To: <403db7ee$1_1@news.tm.net.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: Date: Thu, 26 Feb 2004 15:43:30 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1077810210 217.209.116.179 (Thu, 26 Feb 2004 16:43:30 CET) NNTP-Posting-Date: Thu, 26 Feb 2004 16:43:30 CET Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:5860 Date: 2004-02-26T15:43:30+00:00 List-Id: Cecilia Chew wrote: > Hi all, > I am doing a program that will count the input characters from user.=20 > There is a problem that I can't solve. > Problem is : since I'm going to count the characters. So, I can't ask=20 > user how many characters they want to input. Compilation error come and= =20 > mention that the string need to be constrainted. > How am I going to constraint the string type since I don't know how man= y=20 > characters user going to input. If you do want to store the characters, and not just count them, then=20 you obviously need a data type that can handle a variable number of=20 characters. The first place to look for a suitable data type is Ada's=20 standard library. --=20 Bj=F6rn Persson jor ers @sv ge. b n_p son eri nu