• Main Page
  • Classes
  • Files
  • File List

Stack.h

00001 
00002 // Praktikum Informatik 1
00003 // Versuch 4.1: Dynamische Datenstrukturen
00004 //
00005 // Datei:  Stack.h
00006 // Inhalt: Stack mit Push-, Pop- und Ausgabe-Funktion
00008 
00009 #ifndef STACK_H_
00010 #define STACK_H_
00011 
00015 
00016 #include <iostream>
00017 #include <string>
00018 using namespace std;
00019 #include "Student.h"
00020 
00024 
00025 // Stackstruktur
00026 struct Stack
00027 {
00028 
00029         Stack();
00030         void push(const Student& stud);
00031         void ausgabe();
00032         bool pop(Student& stud);
00033         struct ListElem
00034         {
00035                 Student data; //d
00036                 ListElem* next; //e
00037         };
00038         ListElem* head; //f
00039         ListElem* tail; //g
00040 };
00041 
00042 
00043 #endif /*STACK_H_*/

Generated on Wed Apr 20 2011 23:44:35 for Stack by  doxygen 1.7.1