Example #1
0
void
CmdInterface::show(const Record & rec)
{
   cout << left << setw(5)  << rec.index()
        << left << setw(15) << rec.name()
        << left << setw(15) << rec.phone()
        << left << setw(20) << rec.addr() << endl;
}
Example #2
0
bool
Record::operator==(const Record & rec)const
{
	if (rec.name() == name() 
		&& rec.phone() == phone()
		&& rec.addr() == addr()  )
		return true;
	else
		return false;
}