blob: 34ca1f178e0707a931f149db1f3f3316762a2034 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef HEADER_EVENTSYSTEM_RESERVATION
#define HEADER_EVENTSYSTEM_RESERVATION
#include "Ticket.h"
#include <istream>
#include <ostream>
class Reservation {
Ticket ticket;
char password[8];
char note[32];
public:
Reservation();
Reservation(const Ticket& ticket);
Reservation(const Ticket& ticket, const char* password, const char* note);
void read(std::istream& istr);
void write(std::ostream& ostr) const;
int compare(const Reservation& other) const;
};
#endif
|