listing.h

来自「This assessment creates an initial versi」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef LISTING_H
#define LISTING_H

#include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
#include <functional>

#include "Advertisement.h"

using namespace std;

class Listing;

class Listing {

protected:
	typedef vector<Advertisement*> Container;

public:
	typedef Container::iterator iterator;

protected:
	Container objects;

public:
	virtual Advertisement* operator[](const int& number);

	virtual void add(Advertisement* ptr);

	virtual iterator begin();
	virtual iterator end();

};

#endif

⌨️ 快捷键说明

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