#include #include "building.h" using namespace std; int main() { Building *myBuilding = new Building(OPEN, 5); Building *yourBuilding = new Building(OPEN, 4, 2, 10); Building aBuilding = Building(LOCKED, 2); cout << "Number of rooms in my building: " << myBuilding->getRooms() << endl << endl; myBuilding->name = "Nate's building"; aBuilding.name = "Jordan Hall"; cout << "A building name: " << aBuilding.name << endl << endl; cout << "My building's name: " << myBuilding->name << endl; // The following won't work. Why? // cout << myBuilding->rooms << endl; // myBuilding->status = OPEN; delete myBuilding; delete yourBuilding; // The delete constructor will execute 3 times. Why? // If we made a new declaration like the following line: // Building *testBuilding = new Building(OPEN, 4); // Will the destructor automatically be called again? Why or why not? return 0; }