home *** CD-ROM | disk | FTP | other *** search
- // stack2.h: Die Klasse Stack von der Klasse
- // List abgeleitet
- // Aus Kapitel 6 der Einführung
-
- #include "list2.h"
-
- class Stack : public List
- {
- int top;
-
- public:
- Stack() {top = 0;};
- Stack(int n) : List(n) {top = 0;};
- int push(int elem);
- int pop(int& elem);
- void print();
- };
-