home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP30-3.ZIP / EXAMPLES.ZIP / STACK.H < prev    next >
C/C++ Source or Header  |  1992-02-18  |  332b  |  18 lines

  1. // Borland C++ - (C) Copyright 1991 by Borland International
  2.  
  3. // stack.h:    A Stack class derived from the List class
  4.  
  5. #include "list.h"
  6.  
  7. class Stack : public List
  8. {
  9.    int top;
  10.  
  11. public:
  12.    Stack() {top = 0;};
  13.    Stack(int n) : List(n) {top = 0;};
  14.    int push(int elem);
  15.    int pop(int& elem);
  16.    void print();
  17. };
  18.