From: smoore@chowgar.demon.co.uk (Simon Moore)
Subject: Re: Strange problem in GNAT 3.04 Win 95
Date: 1996/10/25
Date: 1996-10-25T00:00:00+00:00 [thread overview]
Message-ID: <3270d4ca.2656680@news.demon.co.uk> (raw)
In-Reply-To: 54ocn1$604@infosrv.rz.unibw-muenchen.de
On 24 Oct 1996 18:32:01 GMT, e81bnick@kommsrv.rz.unibw-muenchen.de
(Nicolay Belofastow) wrote:
>I am novice in Ada, but from my C experience I know, that sometimes
>after usage of scanf function to make a formatted input (e.g. integer
>value, as you do) some extra character remains in the keyboard
> and following getchar (getc in Ada) eats it and so makes no expected
> input.
>
> May be GNAT compiler uses inside of the I/O package
> this C functinality. I see only one way to overcome
> the problem -- the same, you did --
> use extra getc call after the integet input.
>
> Best regards, Nick.
>--
>-------------------------------------------------
>Nickolay Belofastow
>University of the Federal Armed Forces, Munich
>e81bnick@rz.unibw-muenchen.de
Hi Nick
Thanks for the reply, I guess I'll have to live with the problem.
Regards.
*****************************************************************************
* Simon Moore - smoore@chowgar.demon.co.uk - http://www.chowgar.demon.co.uk *
*****************************************************************************
next prev parent reply other threads:[~1996-10-25 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-24 0:00 Strange problem in GNAT 3.04 Win 95 Simon Moore
1996-10-24 0:00 ` Nicolay Belofastow
1996-10-25 0:00 ` Simon Moore [this message]
1996-10-25 0:00 ` Pascal Obry
1996-10-26 0:00 ` Tom Griest
1996-10-31 0:00 ` John English
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox