comp.lang.ada
 help / color / mirror / Atom feed
From: Anders Wirzenius <anders@no.email.thanks.invalid>
Subject: Re: creating an array
Date: Wed, 15 Feb 2006 07:45:17 GMT
Date: 2006-02-15T07:45:17+00:00	[thread overview]
Message-ID: <u7j7xysgr.fsf@no.email.thanks.invalid> (raw)
In-Reply-To: 1139960269.338824.166090@g14g2000cwa.googlegroups.com

"isaac2004" <isaac_2004@yahoo.com> writes:


> sorry havent learned that far yet, but i cant seem to get your code to
> work by itself, it throws a error about a loop where the first if
> statement is. oh well it wasnt tested but i would like ot see a running
> program of that if possible.
> 
> happy coding !
> 

Quick and dirty just to get it running:

Correct the spelling error: 
end if;  -> end loop;

you have to instantiate the Ada.Text_IO.Integer_IO: 
package Anders is new Ada.Text_IO.Integer_IO (Integer);

and then use your new package:
Anders.Get (Expected_Number_Of_Digits);

If the operator "not" is not defined, change the 
if statement to:
if ... then
   null;
else
   ...;
end if;

Good luck!
-- 
Anders



  reply	other threads:[~2006-02-15  7:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14  6:06 creating an array isaac2004
2006-02-14 13:59 ` jimmaureenrogers
2006-02-14 15:20   ` isaac2004
2006-02-14 18:44     ` jimmaureenrogers
2006-02-14 19:25 ` Björn Persson
2006-02-14 19:39   ` Dmitry A. Kazakov
2006-02-14 21:14     ` isaac2004
2006-02-14 22:17       ` jimmaureenrogers
2006-02-14 22:30         ` isaac2004
2006-02-14 22:45         ` Ludovic Brenta
2006-02-14 22:54           ` isaac2004
2006-02-14 23:10             ` Ludovic Brenta
2006-02-14 23:37               ` isaac2004
2006-02-15  7:45                 ` Anders Wirzenius [this message]
2006-02-15 20:44                   ` Björn Persson
2006-02-16  6:59                     ` Anders Wirzenius
2006-02-15 21:53                 ` Ludovic Brenta
2006-02-15 23:29                   ` isaac2004
2006-02-16  3:09                     ` jimmaureenrogers
2006-02-15  7:42     ` Maciej Sobczak
2006-02-15 10:37       ` Jean-Pierre Rosen
2006-02-15 13:30       ` Dmitry A. Kazakov
2006-02-15 16:23         ` isaac2004
replies disabled

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