Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 06 / Event / Event.h
diff options
context:
space:
mode:
1 files changed, 24 insertions, 0 deletions
-rw-r--r--Sem. 06/Event/Event.h24
diff --git a/Sem. 06/Event/Event.h b/Sem. 06/Event/Event.h
new file mode 100644
index 0000000..d836a9f
--- /dev/null
+++ b/Sem. 06/Event/Event.h
@@ -0,0 +1,24 @@
+#pragma once
+#include "Date.h"
+#include "Time.h"
+class Event
+{
+ char name[20];
+ Time begin;
+ Date date;
+
+ void setName(const char* name);
+
+public:
+ Event(const char* name, const Time& begin, const Date& date);
+ Event(const char* name, size_t hours, size_t mins, size_t seconds, size_t day, size_t month, size_t year);
+
+ const Time& getTime() const;
+ const Date& getDate() const;
+ const char* getName() const;
+
+ void print() const;
+
+ int getEventsDayOfWeek(); //can't be const (date.getDayOfWeek is not a constant function)
+ // how can we fix it ???
+}; \ No newline at end of file