home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Liren Large Software Subsidy 7
/
07.iso
/
c
/
c021
/
7.img
/
EXAMPLES.ZIP
/
STACK.H
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1990-05-04
|
269 b
|
16 lines
// stack2.h: A Stack class derived from the List class
#include "list.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();
};