testadvertisement.cpp

来自「This assessment requires the creation of」· C++ 代码 · 共 23 行

CPP
23
字号
#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 + =
减小字号Ctrl + -
显示快捷键?