hw9.cpp
// Programmer: Bushra Anjum
// file: hw9.cpp
#include "Resident.h"
#include "CrimeRoom.h"
#include "time.h"
int main()
{
srand(time(NULL));
//declaring five residents and then outputting them to see if they are indeed
//alive, not murderers, have different hair, and have different names.
Resident resident[8];
cout << "RESIDENT INFORMATION\n";
for (int i = 0; i < 8; i++)
{
cout << resident[i]<<endl;
}
//use one of the residents to call its member functions
resident[1].hair_color_change(5);
cout << "\nCHANGING RESIDENT 1 HAIR COLOR\n";
cout << resident[1] << endl;
CrimeRoom room;
cout << "\n\nFIRST MEETING RESIDENT 1 and 2\n";
room.meeting(resident[0], resident[1]);
cout << resident[0] << endl;
cout << resident[1] << endl;
room.check_room();
cout << endl;
cout << "SECOND MEETING RESIDENT 3 and 4\n";
room.reset();
room.meeting(resident[2], resident[3]);
cout << resident[2] << endl;
cout << resident[3] << endl;
room.check_room();
cout << endl;
cout << "THIRD MEETING RESIDENT 5 and 6\n";
room.reset();
room.meeting(resident[4], resident[5]);
cout << resident[4] << endl;
cout << resident[5] << endl;
room.check_room();
cout << endl;
cout << "FOURTH MEETING RESIDENT 7 and 8\n";
room.reset();
room.meeting(resident[6], resident[7]);
cout << resident[6] << endl;
cout << resident[7] << endl;
room.check_room();
cout << endl;
return 0;
}