From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: How to output values in Hex on screen?
Date: Fri, 8 Mar 2002 05:39:22 -0600
Date: 2002-03-08T05:39:22-06:00 [thread overview]
Message-ID: <mailman.1015587182.15254.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 200203081033.LAA14218@bulgaria.otn.eurocopter.de
Since Ada.Text_IO.Modular_IO is a generic package, the code needs to
be something like this:
-- Instantiate a package for unsigned_16 IO.
package Unsigned_16._IO is Ada.Text_IO.Modular_IO (Interfaces.unsigned_16);
-- Output a value to the screen
Unsigned_16_IO.Put
(Item => <unsigned_16 expression>,
Width => 9, -- output looks like 16#CDEF#
Base => 16);
----- Original Message -----
From: "Christoph Grein" <christoph.grein@eurocopter.com>
To: <comp.lang.ada@ada.eu.org>
Sent: Friday, March 08, 2002 4:33 AM
Subject: Re: How to output values in Hex on screen?
> Ada.Text_IO.Modular_IO.Put (File : in File_Type;
> Item : in Num;
> Width: in Field := Default_Width;
> Base : in Number_Base := Default_Base);
>
> > Which package or how do you do to put values of Unsigned_16 on screen in
hex
> > format?
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
next parent reply other threads:[~2002-03-08 11:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200203081033.LAA14218@bulgaria.otn.eurocopter.de>
2002-03-08 11:39 ` David C. Hoos [this message]
2002-03-08 10:33 How to output values in Hex on screen? Christoph Grein
-- strict thread matches above, loose matches on Subject: below --
2002-03-08 10:21 Sebastian
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox