From: john.mccabe@emrad.com.nospam (John McCabe)
Subject: Re: please help me!!!!!!
Date: Thu, 18 Oct 2001 11:04:27 GMT
Date: 2001-10-18T11:04:27+00:00 [thread overview]
Message-ID: <3bceb72d.11267892@news.demon.co.uk> (raw)
In-Reply-To: 9qm0di$25sj$1@newsreader1.mclink.it
On Thu, 18 Oct 2001 09:33:40 +0200, "F" <phosphorus@libero.it> wrote:
Look up Ada.Text_IO.Skip_Line
>I want to "clean" the keyboard buffer after a user action, for example i
>have a piece of a procedure such as
>...
>c:character; s:string(1..20); ind:integer:=1;
>...
>while not end_of_line loop
>get(c);
>s(i):=c;
>i:=i+1;
>end loop;
>
>if a user writes "hello" and then press return i see that in my s string
>there is the right information but now every time i recall the procedure the
>function end_of_line starts with the true value and so the while loop is
>skipped, i should try to clean the keyboard buffer after every user's press
>of return.
>I'm so sorry for my terrible english but i must understand in which way
>solve this problem.
>Thank you for your attenction
>bye Phosphorus
>
>
>
next prev parent reply other threads:[~2001-10-18 11:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-18 7:33 please help me!!!!!! F
2001-10-18 11:04 ` John McCabe [this message]
2001-10-18 13:04 ` F
2001-10-18 17:34 ` Jeffrey Carter
2001-10-18 17:59 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox