blob: af7acb121011b02867ee58c4092c92a54588f5b7 (
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) const;
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
|