From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88b13dd2d29fb385 X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: Help with ADT Stack Date: 1997/05/29 Message-ID: <5mjv7e$o76@top.mitre.org>#1/1 X-Deja-AN: 244718648 References: <338CEEA4.93867B6D@iinet.net.au> Organization: The MITRE Corporation, Bedford Mass. Newsgroups: comp.lang.ada Summary: questions Date: 1997-05-29T00:00:00+00:00 List-Id: 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?