- PROCEDURE stackfull (s : stack): BOOLEAN;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
DEFINITION MODULE stackadt; FROM elements IMPORT elementtype; TYPE stack = RECORD storage : ARRAY [1. .10] OF elementtype; top: [0. .10] END; PROCEDURE define (VAR s : stack); PROCEDURE makempty (VAR s : stack); PROCEDURE empty (s : stack): BOOLEAN;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PROCEDURE stackfull (s : stack): BOOLEAN; PROCEDURE push (VAR s : stack; item: elementtype); PROCEDURE pop (VAR s : stack; VAR item: elementtype); PROCEDURE topstack (s : stack): elementtype; END stackadt....
View Full Document

This note was uploaded on 08/23/2011 for the course CSE 324 taught by Professor Soliman during the Spring '11 term at NMT.

Ask a homework question - tutors are online