Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit0c2bb64cfdd5edf3d7db9152883092f1d349ba84 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 08:05:13 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 08:05:13 +0300
Filesa9cdc949b02dd7c5e41a3f7b5ba6de8fb56a2138 /src
FMI-OOP-P1_TicketSystem-0c2bb64cfdd5edf3d7db9152883092f1d349ba84.tar
FMI-OOP-P1_TicketSystem-0c2bb64cfdd5edf3d7db9152883092f1d349ba84.tar.gz
FMI-OOP-P1_TicketSystem-0c2bb64cfdd5edf3d7db9152883092f1d349ba84.zip
Parentc5bf971448beaa6a313b29feaec7459594fa0125 (diff)
Autocommit at 02.05.2022 @ 08:05
2 files changed, 9 insertions, 0 deletions
-rw-r--r--src/EventSystem/Reservation.h3
-rw-r--r--src/List/List.h6
diff --git a/src/EventSystem/Reservation.h b/src/EventSystem/Reservation.h
index 1825a13..a5a77a6 100644
--- a/src/EventSystem/Reservation.h
+++ b/src/EventSystem/Reservation.h
@@ -7,6 +7,9 @@ class Reservation {
Ticket ticket;
char password[8];
char note[128];
+
+public:
+ Reservation(const Ticket& ticket, const char* password, const char* note);
};
#endif
diff --git a/src/List/List.h b/src/List/List.h
index 3f30edc..0e7722c 100644
--- a/src/List/List.h
+++ b/src/List/List.h
@@ -1,6 +1,9 @@
#ifndef HEADER_LIST
#define HEADER_LIST
+#include "istream"
+#include "ostream"
+
template <class T>
class List {
T* elements;
@@ -18,6 +21,9 @@ public:
T& operator[](unsigned index);
const T& operator[](unsigned index) const;
+ std::istream read(std::istream& istr);
+ std::ostream write(std::istream& ostr);
+
unsigned get_length() const;
unsigned get_count() const;