示例#1
0
void patientList::del(patient p)
{
	list<patient>::iterator it;
	for(it=pList.begin(); it!=pList.end(); it++)
	{
		if( (*it).getPnum() == p.getPnum() )
			break;
	}
	pList.erase(it);
}