/////////////////////////////////////////////////////////// // Softwarebauelemente I, Aufgabe M7.2. // // author: Stephan Brumme // last changes: January 13, 2001 // import cout to display some data #include #include "PrimitiveTypes.h" #include "MDate.h" #include "MRoom.h" #include "MHouse.h" // open std namespace using namespace std; void main() { // declare our variables MHouse::THouse hou, hou1, hou2; MRoom::TRoom roo, roo1, roo2; Boolean t1,t2,t3; Ordinal n1,n2; // initialize them MHouse::Init(hou); MHouse::Init(hou1); MHouse::Init(hou2); MRoom::Init(roo, 2, 3); MRoom::Init(roo1, 4, 5); MRoom::Init(roo2, 10, 10); t1 = t2 = t3 = false; n1 = n2 = 0; // Case 1 // require: the sets hou1 and hou2 are exemplars of MHouse::THouse // sequence: MHouse::Copy(hou1, hou2, t1); // MHouse::EqualValue(hou1, hou2, t2); // ensure: if the value of t1 is TRUE then t2 is TRUE, too cout<<"Case 1"<