Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 2 / ex2 / main.cpp
blob: 1790a48635c9b1349da8ef203a4e168428844ee3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "EventManager.h"
#include "EventWithFixedIntermission.h"
#include "EventWithIntermission.h"
#include "SimpleEvent.h"
#include <iostream>

int main() {
	EventManager es(3);
	SimpleEvent e1(10, 20);
	EventWithFixedIntermission e2(30, 50, 35);
	EventWithIntermission e3(90, 200, 95, 126);

	es.addEvent(&e1);
	es.addEvent(&e2);
	es.addEvent(&e3);

	std::cout << es.ongoingEvents(91) << std::endl;
}