예제 #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;
}
예제 #2
0
파일: book.cpp 프로젝트: jokerlee/college
bool
Record::operator==(const Record & rec)const
{
	if (rec.name() == name() 
		&& rec.phone() == phone()
		&& rec.addr() == addr()  )
		return true;
	else
		return false;
}