postmasterinterface.cpp
来自「《24学时精通c++》的光盘内容」· C++ 代码 · 共 37 行
CPP
37 行
// Listing 22.2 the PostMasterMessage class
class PostMasterMessage : public MailMessage
{
public:
PostMasterMessage();
PostMasterMessage(
pAddress Sender,
pAddress Recipient,
pString Subject,
pDate creationDate);
// other constructors here
// remember to include copy constructor
// as well as constructor from storage
// and constructor from wire format
// Also include constructors from other formats
~PostMasterMessage();
pAddress& GetSender() const;
void SetSender(pAddress&);
// other member accessors
// operator methods here, including operator equals
// and conversion routines to turn PostMaster messages
// into messages of other formats.
private:
pAddress itsSender;
pAddress itsRecipient;
pString itsSubject;
pDate itsCreationDate;
pDate itsLastModDate;
pDate itsReceiptDate;
pDate itsFirstReadDate;
pDate itsLastReadDate;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?