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,46ea53533b75e179 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-26 19:14:39 PST Date: Fri, 27 Feb 2004 11:13:51 +0800 From: Cecilia Chew User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: count_string program References: <403db7ee$1_1@news.tm.net.my> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.194.109 X-Original-NNTP-Posting-Host: 219.95.194.109 Message-ID: <403eb5f3$1_1@news.tm.net.my> X-Trace: news.tm.net.my 1077851635 219.95.194.109 (27 Feb 2004 11:13:55 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!green.octanews.net!news-out.octanews.net!news-out.visi.com!petbe.visi.com!news.octanews.net!ash.uu.net!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:5876 Date: 2004-02-27T11:13:51+08:00 List-Id: Jacob Sparre Andersen wrote: > 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 Isn't when i get the input from user, the characters will store in (input(i)) variable? If not yet stored, what statement i need to add in? In order to store the characters. For the 2nd question above, I have no idea on it. Isn't once the user push 'enter' button means their input is done. -- Cecilia Chew c e c i l i a g r e e n l i m e . c o m