paycheck.cpp

来自「著名的uncle Bob的Agile software development的」· C++ 代码 · 共 38 行

CPP
38
字号
#include "Paycheck.h"Paycheck::~Paycheck(){}Paycheck::Paycheck(const Date& payPeriodStartDate,		   const Date& payPeriodEndDate): itsPayPeriodStartDate(payPeriodStartDate), itsPayPeriodEndDate(payPeriodEndDate){}void Paycheck::SetGrossPay(double grossPay){  itsGrossPay = grossPay;}void Paycheck::SetNetPay(double netPay){  itsNetPay = netPay;}void Paycheck::SetDeductions(double deductions){  itsDeductions = deductions;}void Paycheck::SetField(string name, string value){  itsFields[name] = value;}string Paycheck::GetField(string name){  return itsFields[name];}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?