資源簡介
卡內(nèi)基ssd5課程練習一的答案,有不足的地方請糾正
代碼片段和文件信息
#include?“Advertisement.h“
#include?
Advertisement::Advertisement()
{
this->title?=?““;
this->seller_email?=?““;
this->body?=?““;
this->start?=?Date();
this->close?=?Date();
this->quantity?=?0;
this->number?=?-1;
}
Advertisement::Advertisement(std::string?title?std::string?seller_email?std::string?body?Date?start?Date?close?int?quantity)
{
this->title?=?title;
this->seller_email?=?seller_email;
this->body?=?body;
this->start?=?start;
this->close?=?close;
this->quantity?=?quantity;
this->number?=?-1;
}
Advertisement::Advertisement(const?Advertisement?&a)
{
this->title?=?a.gettitle();
this->seller_email?=?a.getEmail();
this->body?=?a.getBody();
this->start?=?a.getStart();
this->close?=?a.getClose();
this->quantity?=?a.getQu
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1472??2009-10-24?15:29??Client.cpp
?????文件????????860??2008-05-20?13:18??Client.h
?????文件???????3182??2009-10-24?14:30??Date.cpp
?????文件????????959??2008-05-20?13:18??Date.h
?????文件???????9517??2009-10-24?15:44??TestClasses.cpp
?????文件???????2571??2009-10-24?15:55??Advertisement.cpp
?????文件???????1311??2008-05-20?13:18??Advertisement.h
-----------?---------??----------?-----??----
????????????????19872????????????????????7
評論
共有 條評論