From: "Marc A. Criley" <mcqada95@earthlink.net>
Subject: Re: Storing A string
Date: Fri, 15 Feb 2002 13:05:03 GMT
Date: 2002-02-15T13:05:03+00:00 [thread overview]
Message-ID: <3C6CFA75.4502B4AF@earthlink.net> (raw)
In-Reply-To: mailman.1013706303.15083.comp.lang.ada@ada.eu.org
Anthony Wise wrote:
>
> Hi
> another newbie question !
>
> I need my program to be able to accept lines of text. These lines can be as
> long or short as the user likes.
> I am using the Get_Line procedure (Using only one string), however this
> allows only one entery. So i put Get_Line in a loop, but now the only
> accessable input is the last input. Is there anyway i can store all the
> inputs so i can process them and then output them all together.
> all advice welcomed thx.
After reading each string in your loop, you need to store it away
somewhere for later reference. Arrays and lists are commonly used for
such a purpose.
Marc A. Criley
Consultant
Quadrus Corporation
www.quadruscorp.com
next prev parent reply other threads:[~2002-02-15 13:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-14 17:04 Storing A string Anthony Wise
2002-02-14 18:07 ` Marin David Condic
2002-02-14 18:23 ` Matthew Heaney
2002-02-15 13:05 ` Marc A. Criley [this message]
[not found] <F14ETmXuldbjZj8RfDy00001fdf@hotmail.com>
2002-02-21 12:21 ` M. A. Alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox