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/MyLess.tli
download file

  1 ///////////////////////////////////////////////////////////
  2 // Softwarebauelemente II, Aufgabe C1.1
  3 //
  4 // author: Stephan Brumme
  5 // last changes: July 3, 2001
  6
  7
  8 #include <functional>
  9
 10 // Template that compares two objects
 11
 12 template <typename T>
 13 class MyLess : public std::binary_function<T, T, bool>
 14 {
 15 public:
 16     bool operator() (const T &t1, const T &t2) const     {
 17         return t1 < t2;
 18     }
 19 };
 20
 21