if((*ptrRoom).whoCheckedIn!=0)
{
return "Room is occupied\n";
}
if((*ptrCust).haveReservation!=0)
{
return "Customer is in the room\n";
}
(*ptrCust).whoCheckedIn=roomID;
(*ptrRoom).haveReservation=customerID;
Need more details on what's going on and what the problem is. What do 'count' and 'count1' represent ? Where do all these undeclared vars come from - are they member variables ? prefix them with 'm_' at least...