From: Sandro Magi <smagi@naasking.homeip.net>
Subject: Re: Ada problem
Date: Sun, 14 Nov 2004 20:15:20 -0500
Date: 2004-11-14T20:15:20-05:00 [thread overview]
Message-ID: <HqTld.125$rc.98808@news20.bellglobal.com> (raw)
In-Reply-To: zjTld.141$9b1.3806@eagle.america.net
Or:
with Ada.Text_IO.Enumeration_IO;
procedure values is
��type�Days�is�(monday,�tuesday,�wednesday);
��package�Days_IO�is
�����������������new�Ada.Text_IO.Enumeration_IO�(Days);
begin
��Days_IO.Put(Days'First);
end values;
Larry Hazel wrote:
> ada_newbie wrote:
>
>> Hello,
>>
>> i'm new to ada and i have a simple problem. I don't know how to get an
>> output of enumeration types. The following example doesn't work:
>>
>>
>> with Ada.Text_IO;
>>
>> procedure values is
>>
>>����type�Days�is�(monday,�tuesday,�wednesday);
>>
>> begin
>
>��������Ada.Text_IO.Put(Days'Image(Days'First));
>
>> end values;
next prev parent reply other threads:[~2004-11-15 1:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-14 23:47 Ada problem ada_newbie
2004-11-15 1:08 ` Larry Hazel
2004-11-15 1:15 ` Sandro Magi [this message]
2004-11-15 12:49 ` Marin David Condic
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox