00001
00009 #ifndef STACK_H_
00010 #define STACK_H_
00011
00012
00013 #include <iostream>
00014 #include <string>
00015 #include "Student.h"
00016
00017 using namespace std;
00018
00019
00023 struct Stack
00024 {
00030 Stack();
00031
00035 void ausgabe();
00036
00040 void push(const Student& stud);
00041
00045 bool pop(Student& stud);
00046
00050 struct ListElem
00051 {
00055 Student data;
00056
00062 ListElem* next;
00063 };
00064
00068 ListElem* head;
00069
00073 ListElem* tail;
00074 };
00075
00076 #endif