17 lines
276 B
C
17 lines
276 B
C
|
#ifndef __STACK_H__
|
||
|
#define __STACK_H__
|
||
|
|
||
|
#include "linkedlist.h"
|
||
|
|
||
|
class stack {
|
||
|
public:
|
||
|
linkedlist l;
|
||
|
node* head;
|
||
|
bool addToStack(int id);
|
||
|
int removeFromStack();
|
||
|
int showTopOfStack();
|
||
|
int showSizeOfStack();
|
||
|
bool in_stack(int id);
|
||
|
};
|
||
|
#endif
|