18 lines
288 B
C
18 lines
288 B
C
#ifndef EXAMPLE01A_STACK01A_H
|
|
#define EXAMPLE01A_STACK01A_H
|
|
|
|
#define SIZE 50
|
|
#define EMPTY (-1)
|
|
|
|
struct Stack {
|
|
int arr[SIZE];
|
|
int top;
|
|
};
|
|
|
|
void init(Stack& s);
|
|
void push(Stack& s, int n);
|
|
int pop(Stack& s);
|
|
int isEmpty(Stack& s);
|
|
|
|
#endif //EXAMPLE01A_STACK01A_H
|