blob: 3cdcac42f8b52029d2ff08074e1f384cbee9bc41 (
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
24
25
26
27
28
29
|
#ifndef HEADER_HALL
#define HEADER_HALL
#include <istream>
#include <ostream>
class Hall {
int number;
unsigned rows;
unsigned seatsPerRow;
public:
Hall();
Hall(int number);
Hall(int number, unsigned rows, unsigned seatsPerRow);
int get_number() const;
unsigned get_rows() const;
unsigned get_seatsPerRow() const;
void read(std::istream& istr);
void write(std::ostream& ostr);
int compare(const Hall& other) const;
friend std::istream& operator>>(std::istream& istr, Hall& hall);
friend std::ostream& operator<<(std::ostream& ostr, const Hall& hall);
};
#endif
|