From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,df5a27b6159d7882 X-Google-Attributes: gid103376,public From: je@bton.ac.uk (John English) Subject: Re: Strange problem in GNAT 3.04 Win 95 Date: 1996/10/31 Message-ID: <55a27g$bv0@saturn.brighton.ac.uk>#1/1 X-Deja-AN: 193662745 references: <32707cd0.8077937@news.demon.co.uk> organization: University of Brighton newsgroups: comp.lang.ada Date: 1996-10-31T00:00:00+00:00 List-Id: 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 | ---------------------------------------------------------------