comp.lang.ada
 help / color / mirror / Atom feed
* Array help needed..
@ 2002-05-07 17:12 devine
  2002-05-07 17:21 ` chris.danx
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: devine @ 2002-05-07 17:12 UTC (permalink / raw)


Hi.  Kinda of a newbie to ada.  I have a array setup into which I want
to put words.  I keep getting a standard.integer error for this line:
Ada.Text_IO.Put(Item => Found(Word)), can someone please explain why I
am getting that error and how I can fix it?  I excluded the open file
code.

  Char : Character  
  Found : String(1..10) 

  TYPE CharArray IS ARRAY (1..80) of Character;
  Word : CharArray;

  LOOP
    EXIT WHEN Ada.Text_IO.End_Of_File(InData);
    LOOP
    Ada.Text_IO.Get(File => InData, Item => Char);
       IF Char IN 'a'..'z' THEN
       Ada.Text_IO.Put(Item => Found(Word));
       END IF;
    END LOOP;
  END LOOP; 

Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-08  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-07 17:12 Array help needed devine
2002-05-07 17:21 ` chris.danx
2002-05-07 19:36 ` Preben Randhol
2002-05-08  1:52 ` devine
2002-05-08  9:39   ` David C. Hoos, Sr.

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