sources:
BasicClass.h (1.4k)
C1_1.cpp (604 bytes)
CashOffice.cpp (3.8k)
CashOffice.h (1.8k)
Date.cpp (6.0k)
Date.h (2.9k)
Exception.cpp (2.5k)
Exception.h (1.4k)
House.cpp (7.5k)
House.h (2.7k)
Room.cpp (3.0k)
Room.h (1.6k)


binaries:
Release/C1_1.exe (140.0k)


website:
more info here
studies/bauelemente/Softwarebauelemente-CodeC1-1/C1_1.cpp
download file

  1 ///////////////////////////////////////////////////////////
  2 // Softwarebauelemente II, Aufgabe C1.1
  3 //
  4 // author: Stephan Brumme
  5 // last changes: July 3, 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     set<CRoom> roomSet;
 20     set<CCashOffice> cofSet;
 21
 22     CRoom room(5,10);
 23     CRoom room2(6,7);
 24     roomSet.insert(room);
 25
 26     CCashOffice cof(1,2,3);
 27     cofSet.insert(cof);
 28
 29     CHouse house;
 30     house.Insert(room);
 31     house.Insert(room2);
 32     cout << house.Show();
 33 }
 34