⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testadvertisement.cpp

📁 This assessment requires the creation of three of the core classes of the auction project. Class Dat
💻 CPP
字号:
#include "Advertisement.h"
#include <IOSTREAM>
using namespace std;

// a simply test ,some bugs may not be found
ostream& operator <<(ostream& os,const Advertisement& a)
{
	return os<<a.getBody()<<a.getClose()<<a.getEmail()<<a.getNumber()<<a.getQuantity()
			<<a.getStart()<<a.getTitle()<<endl;
}
void main()
{
	Advertisement a,b;
//	a.setQuantity(1);
//	b.setQuantity(2);
//	int i = (a==b);
//	cout<<a.getStart()<<endl;
//	a.setStart(Date(1,1,1,1,1,1));
// 	cout<<a.getStart()<<endl;

	cin>>a;
	cout<<a;
}

⌨️ 快捷键说明

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