bool Student::operator!=(const Student &rhs) const { const char * lhs_social = getSsn(); const char *rhs_social = rhs.getSsn(); if (std::strcmp(lhs_social, rhs_social) != 0) { return true; } return false; }
void SalariedEmployee::printCheck( ) { setNetPay(salary); std::cout << "\n__________________________________________________\n"; std::cout << "Pay to the order of " << getName( ) << std::endl; std::cout << "The sum of " << getNetPay( ) << " Dollars\n"; std::cout << "_________________________________________________\n"; std::cout << "Check Stub NOT NEGOTIABLE \n"; std::cout << "Employee Number: " << getSsn( ) << std::endl; std::cout << "Salaried Employee. Regular Pay: " << salary << std::endl; std::cout << "_________________________________________________\n"; }
void Doctor::print() { std::cout << "\nData:\nName: " << getName() << "\nSsn: " << getSsn() << "\nSalary: " << getSalary() << "\nSpeciality: " << speciality << "\nVisit Fee: " << visitFee << std::endl; }