45 lines
1.1 KiB
C++

#include <iostream>
#include "Conference.h"
int main() {
Person oseba1("nikola", "petrov");
Person oseba2("rene", "rozman");
Person oseba3("nik", "hazan");
Person oseba4("hana", "karolina");
Event event1("111", "descri", &oseba1, 1,2,2022);
event1.addAttendee(&oseba2);
event1.addAttendee(&oseba3);
event1.addAttendee(&oseba3);
event1.addAttendee(&oseba3);
event1.addAttendee(&oseba4);
Event event2("222", "descri", &oseba2, 1,2,2022);
event2.addAttendee(&oseba1);
event2.addAttendee(&oseba3);
event2.addAttendee(&oseba4);
Event event3("333", "descri", &oseba3,2,2,2022);
event3.addAttendee(&oseba2);
event3.addAttendee(&oseba1);
event3.addAttendee(&oseba4);
Event event4("444", "descri", &oseba4,2,2,2022);
event4.addAttendee(&oseba2);
event4.addAttendee(&oseba3);
event4.addAttendee(&oseba1);
Conference confer("conf",1,2,2022,2,2,2022);
confer.addEvent(event1);
confer.addEvent(event2);
confer.addEvent(event3);
confer.addEvent(event4);
std::cout << confer.toString();
std::cout << confer.biggestAudience().toString();
return 0;
}