sources:
BasicClass.h (1.4k)
CashOffice.cpp (3.7k)
CashOffice.h (1.7k)
Date.cpp (6.1k)
Date.h (2.9k)
House.cpp (6.1k)
House.h (2.3k)
O3_1.cpp (737 bytes)
Room.cpp (2.9k)
Room.h (1.5k)


binaries:
Release/O3_1.exe (124.0k)


website:
more info here
studies/bauelemente/Softwarebauelemente-CodeO3-1/O3_1.cpp
download file

  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