コード例 #1
0
ファイル: Student.cpp プロジェクト: kdawgwilk/school
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;
}
コード例 #2
0
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";
}
コード例 #3
0
ファイル: Doctor.cpp プロジェクト: ArturSymanovic/Employees
void Doctor::print()
{
    std::cout << "\nData:\nName: " << getName() << "\nSsn: " << getSsn() << "\nSalary: " << getSalary() << "\nSpeciality: " << speciality << "\nVisit Fee: " << visitFee << std::endl;
}