blob: fb383c697d9d7a303885e818ef72486bd2025223 (
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
30
|
#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;
};
std::istream& operator>>(std::istream& istr, Hall& hall);
std::ostream& operator<<(std::ostream& ostr, const Hall& hall);
#endif
|