// 22.5HV2 Software Engineering II // Unit 4 Exercise 1 #include #include "room.h" #include "printer.h" void Room::install_printer(Printer* p_ptr) { print = p_ptr; print->set_room(this); } void Room::which_printer() { if (print==NULL) cout << "There is no printer in " << room_no << endl; else cout << room_no << " contains "<< print->get_name() << endl; } char* Room::get_room_no() { return room_no; }