Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by Julio Tentor <jtentor@fi.unju.edu.ar>
- //
- #ifndef DEMOSTACK1_STACK_H
- #define DEMOSTACK1_STACK_H
- class stack {
- public:
- stack(int capacidad = 10);
- virtual ~stack();
- void push(const char elemento);
- char pop();
- char peek();
- char top() { return this->peek(); }
- bool empty();
- int count();
- private:
- int capacidad;
- char *datos;
- int cuenta;
- };
- #endif //DEMOSTACK1_STACK_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement