From: je@bton.ac.uk (John English)
Subject: Re: Strange problem in GNAT 3.04 Win 95
Date: 1996/10/31
Date: 1996-10-31T00:00:00+00:00 [thread overview]
Message-ID: <55a27g$bv0@saturn.brighton.ac.uk> (raw)
In-Reply-To: 32707cd0.8077937@news.demon.co.uk
Simon Moore (smoore@chowgar.demon.co.uk) wrote:
: Hello all
: When 2 is selected you don't get the chance to input a character
: although option 1 works fine.
: But, if you un-coment the get(c) before the case statement the program
: works fine. It doesn't bother with that get(c) but the one inside the
: case statement does.
: Any ideas?
Is it perhaps that you've hit return after entering "choice"
and that the get(c) before the case is reading an end-of-line
character? Get(n) will skip whitespace onto the next line
but get(c) won't. Try using Skip_Line before the loop.
---------------------------------------------------------------
John English | mailto:je@brighton.ac.uk
Senior Lecturer | http://www.comp.it.bton.ac.uk/je
Dept. of Computing | fax: (+44) 1273 642405
University of Brighton |
---------------------------------------------------------------
prev parent reply other threads:[~1996-10-31 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
1996-10-25 0:00 ` Pascal Obry
1996-10-26 0:00 ` Tom Griest
1996-10-31 0:00 ` John English [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox