diff options
Autocommit at 02.05.2022 @ 08:05
2 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | src/EventSystem/Reservation.h | 3 | ||||
| -rw-r--r-- | src/List/List.h | 6 |
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; |
