comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: jumping a loop
Date: 1998/02/05
Date: 1998-02-05T00:00:00+00:00	[thread overview]
Message-ID: <6bcgrj$4j6$1@peuplier.wanadoo.fr> (raw)
In-Reply-To: 34D91382.6FC1@er.uqam.ca


marc a écrit dans le message <34D91382.6FC1@er.uqam.ca>...
>jj091849@er.uqam.ca
>I have writen the followinf (simple!!)program.
>at the beginning it's jumping a loop.
>compile and run and the first item is jump!
>Could you help me with this .
>thanK's  (compiled with object ada7.1)
>-------------------------------------------------
>
> with text_io;    use text_io;
>procedure essai is

   [...]
>    text_io.put("Combiens de items à entrez (0-10)");
>    Es_Entiers.get(item=> iter);


Add a call to Skip_Line here.   

Integer_IO leaves you before the end of line, so when you read a string you will get an empty string.
And BTW, do you know that there is a french speaking version of comp.lang.ada ? It's called fr.comp.lang.ada






      reply	other threads:[~1998-02-05  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-05  0:00 jumping a loop marc
1998-02-05  0:00 ` Jean-Pierre Rosen [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