// stack.h
// Prinzip LIFO

#ifndef STACK_H
#define STACK_H

struct node
{
	int key;
	node *next;
};

class Stack
{
	node *top;

public:
	Stack();
	~Stack();
	void push(int);
	int pop();
	int getTop();
	int isEmpty();
};

#endif