20 lines
266 B
C++
20 lines
266 B
C++
|
|
#ifndef EXAMPLE01C_STACK01C_H
|
|
#define EXAMPLE01C_STACK01C_H
|
|
|
|
#define SIZE 50
|
|
|
|
class Stack {
|
|
private:
|
|
int arr[SIZE];
|
|
int top;
|
|
public:
|
|
Stack();
|
|
void push(int n);
|
|
int pop();
|
|
int isEmpty();
|
|
};
|
|
|
|
|
|
#endif //EXAMPLE01C_STACK01C_H
|