资源简介
数据结构课程设计实验全代码,含实验报告,实验报告很烂,仅供参考。

代码片段和文件信息
#include “Advertisement.h“
#include
#include
using namespace std;
istream &operator>>(istream &stream Advertisement &a){
string temtitle temEmail temBody;
int temQuantity;
Date start_date close_date;
stream >> temtitle >> temEmail >> temQuantity >> start_date
>> close_date >> temBody;
a.settitle(temtitle);
a.setEmail(temEmail);
a.setQuantity(temQuantity);
a.setStart(start_date);
a.setClose(close_date);
return stream;
}
Advertisement::Advertisement(void){
setNumber(0);
setQuantity(0);
settitle(““);
setEmail(““);
setBody(““);
setStart(Date());
setClose(Date());
/*this->number = 0;
this->quantity = 0;
this->title = ““;
this->seller_email = ““;
this->body = ““;
this->start = Date();
this->close = Date();*/
}
Advertisement::Advertisement(const Advertisement &a){
setNumber(a.getNumber());
setQuantity(a.getQuantity());
settitle(a.gettitle());
setEmail(a.getEmail());
setBody(a.getBody());
setStart(a.getStart());
setClose(a.getClose());
/*this->number = a.getNumber();
this->quantity = a.getQuantity();
this->title = a.gettitle();
this->seller_email = a.getEmail();
this->body = a.getBody();
this->start = a.getStart();
this->close = a.getClose();*/
}
Advertisement::Advertisement (string title string seller_email string body
Date start Date close int quantity){
settitle(title);
setEmail(seller_email);
setBody(body);
setStart(start);
setQuantity(quantity);
}
void Advertisement::setStart (const Date &start){
// this->start->month = start.getMonth();
this->start = start;
}
void Advertisement::setClose (const Date &close){
this->close = close;
}
void Advertisement::settitle (string title){
this->title = title;
}
void Advertisement::setBody (string body){
this->body = body;
}
void Advertisement::setNumber (int number){
this->number = number;
}
void Advertisement::setEmail (string email){
this->seller_email = email;
}
void Advertisement::setQuantity (int quantity){
this->quantity = quantity;
}
Date Advertisement::getStart () const{
return this->start;
}
Date Advertisement::getClose () const{
return this->close;
}
string Advertisement::gettitle() const{
return this->title;
}
string Advertisement::getBody() const{
return this->body;
}
string Advertisement::getEmail() const{
return this->seller_email;
}
int Advertisement::getNumber () const{
return this->number;
}
int Advertisement::getQuantity() const{
return this->quantity;
}
bool Advertisement::operator==(const Advertisement&) const{
return false;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2913 2012-08-30 20:37 软件工程1001班20103349李杨\exercise1\Advertisement.cpp
文件 1265 2012-08-28 17:00 软件工程1001班20103349李杨\exercise1\Advertisement.h
文件 1534 2012-08-30 20:40 软件工程1001班20103349李杨\exercise1\Client.cpp
文件 793 2004-01-14 09:09 软件工程1001班20103349李杨\exercise1\Client.h
文件 3516 2012-08-30 20:51 软件工程1001班20103349李杨\exercise1\Date.cpp
文件 1027 2012-08-29 19:33 软件工程1001班20103349李杨\exercise1\Date.h
文件 2378 2004-09-14 12:53 软件工程1001班20103349李杨\exercise1\testdate.cpp
文件 2941 2012-09-02 19:02 软件工程1001班20103349李杨\exercise2\Advertisement.cpp
文件 1335 2012-09-01 00:13 软件工程1001班20103349李杨\exercise2\Advertisement.h
文件 7387 2004-01-14 16:09 软件工程1001班20103349李杨\exercise2\buildpage.cpp
文件 826 2004-01-14 16:07 软件工程1001班20103349李杨\exercise2\buildpage.h
文件 1534 2012-09-01 19:55 软件工程1001班20103349李杨\exercise2\Client.cpp
文件 793 2004-01-14 09:09 软件工程1001班20103349李杨\exercise2\Client.h
文件 3516 2012-08-30 20:51 软件工程1001班20103349李杨\exercise2\Date.cpp
文件 963 2004-01-13 15:03 软件工程1001班20103349李杨\exercise2\Date.h
文件 548 2012-09-02 19:11 软件工程1001班20103349李杨\exercise2\Group.cpp
文件 523 2004-01-13 10:58 软件工程1001班20103349李杨\exercise2\Group.h
文件 1809 2012-09-06 23:34 软件工程1001班20103349李杨\exercise2\Listing.cpp
文件 562 2004-01-14 14:19 软件工程1001班20103349李杨\exercise2\Listing.h
文件 2996 2004-01-14 16:16 软件工程1001班20103349李杨\exercise2\main.cpp
文件 311 2004-01-14 16:38 软件工程1001班20103349李杨\exercise2\main.h
文件 2825 2004-01-14 16:10 软件工程1001班20103349李杨\exercise2\processrequest.cpp
文件 200 2004-01-14 09:12 软件工程1001班20103349李杨\exercise2\processrequest.h
文件 2913 2012-08-30 20:37 软件工程1001班20103349李杨\exercise3\Advertisement.cpp
文件 1265 2004-01-14 09:11 软件工程1001班20103349李杨\exercise3\Advertisement.h
文件 9651 2004-01-14 14:22 软件工程1001班20103349李杨\exercise3\buildpage.cpp
文件 906 2004-01-14 14:22 软件工程1001班20103349李杨\exercise3\buildpage.h
文件 585 2012-09-02 20:45 软件工程1001班20103349李杨\exercise3\Categories.cpp
文件 561 2012-09-05 19:07 软件工程1001班20103349李杨\exercise3\Categories.h
文件 2992 2012-09-05 19:42 软件工程1001班20103349李杨\exercise3\Category.cpp
............此处省略96个文件信息
- 上一篇:计算机图形学课程设计
- 下一篇:web应用小游戏
相关资源
- FTP课程设计(服务端+客户端)
- 数据结构年终考题范围和答案 耿国华
- 高频电子线路课程设计报告收音机
- 直流稳压电源的课程设计、安装及调
- EDA课程设计_密码锁
- 数据结构 朱战力 习题解答 数据结构
- 单片机课程设计 篮球计分器
- 数据结构课程设计 6 1 彩票系统
- 端口扫描课程设计详细的报告
- 教学计划编制系统
- 步进电机课程设计(个人设计)
- 校园网络规划与设计课程设计
- 大数(链表、数组)实现
- 编译原理课程设计:词法语法编译器
-
simuli
nk 课程设计 qpsk - 武汉理工大学 单片机课程设计 16*16点
- 数据库VFP课程设计
- 分页系统模拟实验 操作系统 课程设
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- 模拟段页式虚拟存储管理中地址转换
- 硬件课程设计—流水灯(quartus软件
- 超市收银系统eclipse access大学课程设计
- 航空订票系统_数据结构课程设计
- c 课程设计 职工信息管理系统
- 汇编语言,课程设计,红绿灯
- 机床液压系统课程设计卧式钻床动力
- 多项式求和(数据结构C 版)
- 尚观培训linux董亮老师关于数据结构的
- 课程设计蔬菜大棚自动控制系统,包
评论
共有 条评论