... | @@ -71,26 +71,26 @@ Die Klasse FB braucht einen Vector, der Pointer auf die Klasse Student enthält. |
... | @@ -71,26 +71,26 @@ Die Klasse FB braucht einen Vector, der Pointer auf die Klasse Student enthält. |
|
|
|
|
|
In Code umgesetzt ergeben sich folgende Strukturen:
|
|
In Code umgesetzt ergeben sich folgende Strukturen:
|
|
|
|
|
|
// FB.h
|
|
// FB.h<p>
|
|
#ifndef FB_H_H
|
|
#ifndef FB_H_H<p>
|
|
#define FB_H_H
|
|
#define FB_H_H<p>
|
|
#include "Studenten.h"
|
|
#include "Student.h"<p>
|
|
class Studenten;
|
|
class Student;<p>
|
|
|
|
<p>
|
|
class FB
|
|
class FB<p>
|
|
{
|
|
{<p>
|
|
std::vector<Studenten *> pStudenten;
|
|
std::vector<Studenten *> pStudenten;<p>
|
|
};
|
|
};<p>
|
|
#endif
|
|
#endif<p>
|
|
|
|
<p><p>
|
|
// Student.h
|
|
// Student.h<p>
|
|
#ifndef STUDENT_H_H
|
|
#ifndef STUDENT_H_H<p>
|
|
#define STUDENT_H_H
|
|
#define STUDENT_H_H<p>
|
|
#include "FB.h"
|
|
#include "FB.h"<p>
|
|
class FB;
|
|
class FB;<p>
|
|
class Studenten
|
|
class Student<p>
|
|
{
|
|
{<p>
|
|
FB* pFB;
|
|
FB* pFB;<p>
|
|
};
|
|
};<p>
|
|
#endif
|
|
#endif<p>
|
|
|
|
<p> |
|
\ No newline at end of file |
|
\ No newline at end of file |