?? salaried.h
字號:
// Header file for the Salaried class, derived from the// Employee base class and used to maintain records for // employees with a fixed monthly salary#ifndef CLASS_Salaried#define CLASS_Salaried#include "employee.h" // Always include header from // base classclass Salaried : public Employee {public: // Constructor Salaried( const std::string& name, const std::string& ssn, double salary ); // Copy constructor Salaried( const Salaried& s ); // Destructor ~Salaried(); // Get/Set pairs to work with member variables inline double GetSalary() const { return m_Salary; } inline void SetSalary( double s ) { m_Salary = s; } // Computes and returns yearly pay from monthly salary double GetYearlyPay() const; // Called by << operator to output member variables // specific to salaried employees void SendTo( std::ostream& out ) const; private: double m_Salary; // monthly salary // This is declared private to prevent assignment Salaried& operator=( const Salaried& s ); };#endif // CLASS_Salaried
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -