From: "Anders Wirzenius" <anders.wirzenius@pp.qnet.fi>
Subject: Re: Interger_io get and Text_io.Get_line
Date: Fri, 17 Oct 2003 05:08:33 GMT
Date: 2003-10-17T05:08:33+00:00 [thread overview]
Message-ID: <lPKjb.15$uW6.1@read3.inet.fi> (raw)
In-Reply-To: 9cHjb.3520$s93.924@newsread3.news.pas.earthlink.net
"Jeffrey Carter" <spam@spam.com> wrote in message
news:9cHjb.3520$s93.924@newsread3.news.pas.earthlink.net...
> CheGueVerra wrote:
>
> > subType MyString is string(10..20);
> > TstStr : MyString;
> > ...
> > Put_line("Enter a string");
> > Get_Line(TstStr, Last);
> > Put_line(TstStr(TstStr'First..Last));
>
> Good. You've fixed the Put_Line, which before was displaying the
entire
> string.
Note that the code now works with also
subtype MyString is string(47..57); -- btw, 11 characters, not 10
...
Get_Line(TstStr, Last);
Put_Line(TstStr(TstStr'First..Last);
2cts
Anders
next prev parent reply other threads:[~2003-10-17 5:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 20:12 Interger_io get and Text_io.Get_line CheGueVerra
2003-10-16 20:22 ` CheGueVerra
2003-10-16 23:31 ` Robert I. Eachus
2003-10-17 1:01 ` Jeffrey Carter
2003-10-17 1:15 ` CheGueVerra
2003-10-17 5:08 ` Anders Wirzenius [this message]
2003-10-17 5:59 ` Anders Wirzenius
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox