Re: count_string program
From: Cecilia Chew (cecilia_at_nowhere.com)
Date: 02/27/04
- Next message: Cecilia Chew: "Re: count_string program"
- Previous message: Luke A. Guest: "GNAT/C++ & Multiple constructors"
- In reply to: Jacob Sparre Andersen: "Re: count_string program"
- Next in thread: Jacob Sparre Andersen: "Re: count_string program"
- Reply: Jacob Sparre Andersen: "Re: count_string program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Feb 2004 11:13:51 +0800
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 <AT> g r e e n l i m e . c o m
- Next message: Cecilia Chew: "Re: count_string program"
- Previous message: Luke A. Guest: "GNAT/C++ & Multiple constructors"
- In reply to: Jacob Sparre Andersen: "Re: count_string program"
- Next in thread: Jacob Sparre Andersen: "Re: count_string program"
- Reply: Jacob Sparre Andersen: "Re: count_string program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]