|
FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
|
Each hall contains a number, rows and seats per row. More...
#include <Hall.h>
Public Member Functions | |
| Hall () | |
| Sets values to 0. | |
| Hall (int number) | |
| Sets values, except number, to 0. | |
| Hall (int number, unsigned rows, unsigned seatsPerRow) | |
| Sets values. | |
| int | get_number () const |
| Returns a Hall's number. | |
| unsigned | get_rows () const |
| Returns a Hall's row count. | |
| unsigned | get_seatsPerRow () const |
| Return a Hall's seats per row count. | |
| void | read (std::istream &istr) |
| Reads Hall from stream. More... | |
| void | write (std::ostream &ostr) const |
| Writes Hall to steam. More... | |
| int | compare (const Hall &other) const |
| Compare two Halls. More... | |
Each hall contains a number, rows and seats per row.
| int Hall::compare | ( | const Hall & | other | ) | const |
Compare two Halls.
| void Hall::read | ( | std::istream & | istr | ) |
| void Hall::write | ( | std::ostream & | ostr | ) | const |