1 ///////////////////////////////////////////////////////////
2 // Softwarebauelemente II, Aufgabe O3.1
3 //
4 // author: Stephan Brumme
5 // last changes: May 28, 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 CDate myDate(27,12,1978);
20 CDate myDate2(28,12,1978);
21
22 CCashOffice myCashOffice(10,20,1);
23 CCashOffice myCashOffice2(11,21,2);
24
25 CHouse myHouse(myDate);
26 CHouse myHouse2;
27
28 myHouse.Insert(myCashOffice);
29 myHouse.Insert(myCashOffice2);
30
31 cout<<myHouse.Show();
32 cout<<myHouse2.Show();
33
34 myHouse2 = myHouse;
35
36 cout<<myHouse2.Show();;
37 cout<<myHouse2.ShowDebug();
38
39 cout<<(myHouse==myHouse2)<<endl;
40 }
41