From: devine@linuxmail.org (devine)
Subject: Array help needed..
Date: 7 May 2002 10:12:08 -0700
Date: 2002-05-07T17:12:09+00:00 [thread overview]
Message-ID: <e6a474c.0205070912.49f26224@posting.google.com> (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.
next reply other threads:[~2002-05-07 17:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 17:12 devine [this message]
2002-05-07 17:21 ` Array help needed chris.danx
2002-05-07 19:36 ` Preben Randhol
2002-05-08 1:52 ` devine
2002-05-08 9:39 ` David C. Hoos, Sr.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox