adding cs235
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user