From: Robert A Duff <bobduff@world.std.com>
Subject: Re: How can i print the element poped from a generic STACK
Date: 2000/11/07
Date: 2000-11-07T00:00:00+00:00 [thread overview]
Message-ID: <wcclmuviydf.fsf@world.std.com> (raw)
In-Reply-To: 3A0806E8.B72D569@hotmail.com
jordan <huikeith@hotmail.com> writes:
> package stackOfInt is new STACK(100, INTEGER);
> use stackOfInt;
>
> package INT_IO is new TEXT_IO.INTEGER_IO(INTEGER);
> use INT_IO;
>
> i : Integer;
>
> begin
>
>
> stackOfInt.push(20);
>
> Put(stackOfInt.pop(i)); <------------- error!!!
First call the Pop *procedure*, which will put its result in I.
Then print I. I recommend using 'Image, rather than
Text_IO.Integer_IO, to do the formatting.
- Bob
next prev parent reply other threads:[~2000-11-07 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-07 0:00 How can i print the element poped from a generic STACK jordan
2000-11-07 0:00 ` Robert A Duff [this message]
2000-11-07 0:00 ` Larry Hazel
2000-11-07 0:00 ` Steve Folly
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox