Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Calendar* myCalendar = new Calendar("Gasper");
- Date monday(25, 3, 2019);
- if (!myCalendar->addEvent(
- new Event("Uvod v operacijske sisteme", "E-105",
- DateTime(monday, Time(7)),
- DateTime(monday, Time(9))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Strokovna anglescina", "G2-P4",
- DateTime(monday, Time(9)),
- DateTime(monday, Time(11))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Strokovna anglescina", "G2-P4",
- DateTime(monday, Time(11)),
- DateTime(monday, Time(12))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Programiranje", "G2-P3",
- DateTime(monday, Time(15)),
- DateTime(monday, Time(17))))) {
- std::cout << "Event not added!" << std::endl;
- }
- Date tuesday(26, 3, 2019);
- if (!myCalendar->addEvent(
- new Event("Podatkovne strukture", "E-105",
- DateTime(tuesday, Time(10)),
- DateTime(tuesday, Time(13))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Programiranje II", "F-104",
- DateTime(tuesday, Time(13)),
- DateTime(tuesday, Time(16))))) {
- std::cout << "Event not added!" << std::endl;
- }
- Date wednesday(27, 3, 2019);
- if (!myCalendar->addEvent(
- new Event("Organizacija in arhitektura racunalnikov", "G2-P02",
- DateTime(wednesday, Time(7)),
- DateTime(wednesday, Time(9))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Uvod v operacijske sisteme", "F-103",
- DateTime(wednesday, Time(11)),
- DateTime(wednesday, Time(13))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Osnove algoritmov", "G2-P1",
- DateTime(wednesday, Time(13)),
- DateTime(wednesday, Time(15))))) {
- std::cout << "Event not added!" << std::endl;
- }
- if (!myCalendar->addEvent(
- new Event("Osnove algoritmov", "F-103",
- DateTime(wednesday, Time(15)),
- DateTime(wednesday, Time(18))))) {
- std::cout << "Event not added!" << std::endl;
- }
- Date thursday(28, 3, 2019);
- if (!myCalendar->addEvent(
- new Event("Organizacija in arhitektura racunalnikov", "F-102",
- DateTime(thursday, Time(10)),
- DateTime(thursday, Time(12))))) {
- std::cout << "Event not added!" << std::endl;
- }
- Date friday(29, 3, 2019);
- if (!myCalendar->addEvent(
- new Event("Podatkovne strukture", "F-102",
- DateTime(friday, Time(10)),
- DateTime(friday, Time(12))))) {
- std::cout << "Event not added!" << std::endl;
- }
- std::cout <<myCalendar->toString() <<std::endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement