// Een stack geimplementeerd d.m.v. een list

#include <iostream>
#include "stacklist.h"
using namespace std;

int main() {
	StackWithList<char> s;
	char c;
	cout<<"Type een tekst en sluit af met ."<<endl;
	cin.get(c);
	while (c!='.') {
		s.push(c);
		cin.get(c);
	}
	while (!s.empty()) {
		cout<<s.top();
		s.pop();
	}
	cin.get();
	cin.get();
	return 0;
}
