1 ///////////////////////////////////////////////////////////
2 // Softwarebauelemente II, Aufgabe O3.5
3 //
4 // author: Stephan Brumme
5 // last changes: June 27, 2001
6
7
8 #include "Date.h"
9 #include "Room.h"
10 #include "CashOffice.h"
11 #include "House.h"
12
13 #include <iostream>
14 using namespace std;
15
16
17 void main()
18 {
19 CHouse myHouse(CDate(27,12,1978));
20
21 myHouse.Insert(CCashOffice(10,20,1));
22 myHouse.Insert(CCashOffice(11,21,2));
23
24 cout<<"ForEachDo: "<<endl
<<myHouse.ShowUsingForEachDo()<<endl;
25 cout<<"STL: "<<endl
<<myHouse.Show()<<endl;
26 }
27