23 lines
277 B
C
23 lines
277 B
C
//Stack.h
|
|
#ifndef STACK_H
|
|
#define STACK_H
|
|
|
|
#define MAX_SIZE 100
|
|
|
|
typedef struct stack {
|
|
int data[MAX_SIZE];
|
|
int top;
|
|
} stack;
|
|
|
|
bool isEmpty(stack &s);
|
|
|
|
bool isFull(stack &s);
|
|
|
|
void initStack(stack &s);
|
|
|
|
void push(stack &s, int e);
|
|
|
|
int pop(stack &s);
|
|
|
|
#endif //STACK_H
|