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 02:21:58 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!demorgan.zen.co.uk!murdoch.zen.co.uk!zen.net.uk!fuller.zen.co.uk!news.hacking.dk!pnx.dk!munin.nbi.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: count_string program Date: 26 Feb 2004 11:17:08 +0100 Organization: Munin Sender: sparre@sparre.crs4.it Message-ID: References: <403db7ee$1_1@news.tm.net.my> NNTP-Posting-Host: sparre.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: munin.grove.home 1077790629 19507 156.148.70.170 (26 Feb 2004 10:17:09 GMT) X-Complaints-To: sparre@munin.nbi.dk NNTP-Posting-Date: Thu, 26 Feb 2004 10:17:09 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:5835 Date: 2004-02-26T11:17:08+01:00 List-Id: Cecilia Chew wrote: > I am doing a program that will count the input characters from > user. There is a problem that I can't solve. > Problem is : since I'm going to count the characters. So, I can't > ask user how many characters they want to input. Compilation error > come and mention that the string need to be constrainted. > How am I going to constraint the string type since I don't know how > many characters user going to input. Some questions that might help you: * Do you have to store the characters entered by the user? * How does the user signal that he/she is done entering characters? Jacob -- �Great minds discuss ideas, Average minds discuss events, Small minds discuss people.�