comp.lang.ada
 help / color / mirror / Atom feed
From: mfb@mbunix.mitre.org (Michael F Brenner)
Subject: Re: Help with ADT Stack
Date: 1997/05/29
Date: 1997-05-29T00:00:00+00:00	[thread overview]
Message-ID: <5mjv7e$o76@top.mitre.org> (raw)
In-Reply-To: 338CEEA4.93867B6D@iinet.net.au


Here are a couple of questions:

The file statlib imports a package called ADTBStk, which we can guess
is intended to be an Abstract Data Type B-Tree implemented Stack, and
did you write this and is it fully tested and what is its specification
(visible part)?

Presumably the Push on line 172 is what is putting things onto the 
stack whose Top you are requesting, so what is the value of NumCopies
the program sees as the loop control variable on line 164?

By spending a lot of time reading and analyzing the code in this post,
it might be possible to find the source of this problem without seeing
the source code for the bdy of ADTBStk, because the bug might be in 
Statlib instead of ADTBStk, but that might not be the most efficient
way to do this.

Is Top programmed to fail when there are no elements on the stack?

Why is a stack being used to track the loans?






  reply	other threads:[~1997-05-29  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-29  0:00 Help with ADT Stack Jon Elbery
1997-05-29  0:00 ` Michael F Brenner [this message]
1997-05-29  0:00 ` Help With Ada_Io and Exceptions David H. Haley
1997-05-30  0:00   ` John G. Volan
replies disabled

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