comp.lang.ada
 help / color / mirror / Atom feed
From: marc <jj091849@er.uqam.ca>
Subject: jumping a loop
Date: 1998/02/05
Date: 1998-02-05T00:00:00+00:00	[thread overview]
Message-ID: <34D91382.6FC1@er.uqam.ca> (raw)


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
PACKAGE ES_Entiers IS NEW Text_io.Integer_IO(Num=> Integer);
TYPE File_Mode IS (In_File,Out_File);
lki,auteur,source,ref,idn:string(1..32);



  type t_item is record      
        item     :string(1..32);
        an,mois,jour,heure,min :NATURAL:=0;
   end record;
   v_item: Array(1..10) of t_item;
      iter,long,i:natural:=0;
   begin            

    text_io.put("Combiens de items � entrez (0-10)");
    Es_Entiers.get(item=> iter);
    
    
    for i In 1..Iter loop 
   
text_io.put(item=>"item : ");
get_line(v_item(i).item,last=>long);
text_io.New_Line(2);
long:=0;




    end loop;
    end essai ;




             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 marc [this message]
1998-02-05  0:00 ` jumping a loop Jean-Pierre Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox